class DefaultAuthenticationFailureHandler implements AuthenticationFailureHandlerInterface
Class with the default authentication failure handling logic.
Can be optionally be extended from by the developer to alter the behaviour while keeping the default behaviour.
__construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = array(), LoggerInterface $logger = null) | ||
array | getOptions() Gets the options. | |
setOptions(array $options) | ||
Response | onAuthenticationFailure(Request $request, AuthenticationException $exception) This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener. |
HttpKernelInterface | $httpKernel | |
HttpUtils | $httpUtils | |
array | $options | |
LoggerInterface | $logger |
Gets the options.
array | An array of options |
array | $options |
This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
Request | $request | |
AuthenticationException | $exception |
Response | The response to return, never null |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationFailureHandler.html