Spec-Zone.ru › Symfony 4.1

DefaultAuthenticationFailureHandler

class DefaultAuthenticationFailureHandler implements AuthenticationFailureHandlerInterface

Класс с логикой обработки стандартной неудачи аутентификации.

Разработчик может его расширить, чтобы изменить поведение, сохранив при этом стандартное поведение.

Свойства

protected $httpKernel
protected $httpUtils
protected $logger
protected $options
protected $defaultOptions

Методы

__construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = array(), LoggerInterface $logger = null)
array getOptions()

Получает параметры.

setOptions(array $options)
Response onAuthenticationFailure(Request $request, AuthenticationException $exception)

Вызывается при неудачной попытке интерактивной аутентификации. Вызывается слушателями аутентификации, унаследованными от AbstractAuthenticationListener.

Подробности

__construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = array(), LoggerInterface $logger = null)

Параметры

HttpKernelInterface $httpKernel
HttpUtils $httpUtils
array $options
LoggerInterface $logger

array getOptions()

Получает параметры.

Значение возврата

array Массив параметров

setOptions(array $options)

Параметры

array $options

Response onAuthenticationFailure(Request $request, AuthenticationException $exception)

Вызывается при неудачной попытке интерактивной аутентификации. Вызывается слушателями аутентификации, унаследованными от AbstractAuthenticationListener.

Параметры

Request $request
AuthenticationException $exception

Значение возврата

Response Возвращаемый ответ, никогда не null

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationFailureHandler.html

Spec-Zone.ru

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