class ExceptionListener
ExceptionListener catches authentication exception and converts them to Response instances.
Traits
TargetPathTrait | Trait to get (and set) the URL the user last visited before being forced to authenticate. |
Methods
__construct(TokenStorageInterface $tokenStorage, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null, $stateless = false) | ||
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
__construct(TokenStorageInterface $tokenStorage, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null, $stateless = false)
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.
Please login to continue.