class ExceptionListener

ExceptionListener catches authentication exception and converts them to Response instances.

Methods

__construct(TokenStorageInterface $tokenStorage, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null, $stateless = false)

No description

register(EventDispatcherInterface $dispatcher)

Registers a onKernelException listener to take care of security exceptions.

unregister(EventDispatcherInterface $dispatcher)

Unregisters the dispatcher.

onKernelException(GetResponseForExceptionEvent $event)

Handles security related exceptions.

Details

at line line 52
__construct(TokenStorageInterface $tokenStorage, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null, $stateless = false)

Parameters

TokenStorageInterface $tokenStorage
AuthenticationTrustResolverInterface $trustResolver
HttpUtils $httpUtils
$providerKey
AuthenticationEntryPointInterface $authenticationEntryPoint
$errorPage
AccessDeniedHandlerInterface $accessDeniedHandler
LoggerInterface $logger
$stateless

at line line 70
register(EventDispatcherInterface $dispatcher)

Registers a onKernelException listener to take care of security exceptions.

Parameters

EventDispatcherInterface $dispatcher An EventDispatcherInterface instance

at line line 80
unregister(EventDispatcherInterface $dispatcher)

Unregisters the dispatcher.

Parameters

EventDispatcherInterface $dispatcher An EventDispatcherInterface instance

at line line 90
onKernelException(GetResponseForExceptionEvent $event)

Handles security related exceptions.

Parameters

GetResponseForExceptionEvent $event An GetResponseForExceptionEvent instance