class ExceptionListener
ExceptionListener catches authentication exception and converts them to Response instances.
Methods
| __construct(SecurityContextInterface $context, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null) | ||
|
register(EventDispatcherInterface $dispatcher)
Registers a onKernelException listener to take care of security exceptions. |
||
|
onKernelException(GetResponseForExceptionEvent $event)
Handles security related exceptions. |
Details
at line 50
public
__construct(SecurityContextInterface $context, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null)
at line 67
public
register(EventDispatcherInterface $dispatcher)
Registers a onKernelException listener to take care of security exceptions.
at line 77
public
onKernelException(GetResponseForExceptionEvent $event)
Handles security related exceptions.