Spec-Zone.ru › Symfony 4.0

Исключение доступа запрещен

класс 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.
http://api.symfony.com/4.0/Symfony/Component/Security/Core/Exception/AccessDeniedException.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API