ИсключениеAccessDeniedException
класс AccessDeniedException расширяет RuntimeException
Исключение AccessDeniedException выбрасывается, когда у учетной записи отсутствует необходимый роль.
Методы
| __construct(string $message = 'Доступ запрещен.', Exception $previous = null) | ||
| array | getAttributes() | |
| setAttributes(array|string $attributes) | ||
| mixed | getSubject() | |
| setSubject(mixed $subject) |
Подробности
__construct(string $message = 'Доступ запрещен.', Exception $previous = null)
Параметры
| string | $message | |
| Exception | $previous |
array getAttributes()
Значение возврата
| array |
setAttributes(array|string $attributes)
Параметры
| array|string | $attributes |
mixed getSubject()
Значение возврата
| mixed |
setSubject(mixed $subject)
Параметры
| mixed | $subject |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Core/Exception/AccessDeniedException.html