Http\Authentication\DefaultAuthenticationFailureHandler (Component\Security)
Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler
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.
Methods
__construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = array(), LoggerInterface $logger = null) Constructor. | ||
array | getOptions() Gets the options. | |
setOptions(array $options) Sets the options. | ||
Response | onAuthenticationFailure(Request $request, AuthenticationException $exception) This is called when an interactive authentication attempt fails. |
Details
public __construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = array(), LoggerInterface $logger = null)
Constructor.
public array getOptions()
Gets the options.
public setOptions(array $options)
Sets the options.
public Response onAuthenticationFailure(Request $request, AuthenticationException $exception)
This is called when an interactive authentication attempt fails.
This is called by authentication listeners inheriting from AbstractAuthenticationListener.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationFailureHandler.html