ExceptionListener
class ExceptionListener
ExceptionListener catches authentication exception and converts them to Response instances.
Traits
Trait to get (and set) the URL the user last visited before being forced to authenticate.
Methods
__construct(TokenStorageInterface $tokenStorage, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, string $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, string $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null, bool $stateless = false)
No description
register(EventDispatcherInterface $dispatcher)
Registers a onKernelException listener to take care of security exceptions.
Details
__construct(TokenStorageInterface $tokenStorage, AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, string $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint = null, string $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null, LoggerInterface $logger = null, bool $stateless = false)
register(EventDispatcherInterface $dispatcher)
Registers a onKernelException listener to take care of security exceptions.