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.

Properties

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

Methods

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

No description

array
getOptions()

Gets the options.

setOptions(array $options)

No description

onAuthenticationFailure(Request $request, AuthenticationException $exception)

This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.

Details

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

Parameters

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

at line 58
array getOptions()

Gets the options.

Return Value

array An array of options

at line 63
setOptions(array $options)

Parameters

array $options

at line 71
Response onAuthenticationFailure(Request $request, AuthenticationException $exception)

This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.

Parameters

Request $request
AuthenticationException $exception

Return Value

Response The response to return, never null