class ExceptionListener
ExceptionListener catches authentication exception and converts them to Response instances.
TargetPathTrait | Trait to get (and set) the URL the user last visited before being forced to authenticate. |
__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. | ||
unregister(EventDispatcherInterface $dispatcher) Unregisters the dispatcher. | ||
onKernelException(GetResponseForExceptionEvent $event) Handles security related exceptions. | ||
setTargetPath(Request $request) |
TokenStorageInterface | $tokenStorage | |
AuthenticationTrustResolverInterface | $trustResolver | |
HttpUtils | $httpUtils | |
string | $providerKey | |
AuthenticationEntryPointInterface | $authenticationEntryPoint | |
string | $errorPage | |
AccessDeniedHandlerInterface | $accessDeniedHandler | |
LoggerInterface | $logger | |
bool | $stateless |
Registers a onKernelException listener to take care of security exceptions.
EventDispatcherInterface | $dispatcher |
Unregisters the dispatcher.
EventDispatcherInterface | $dispatcher |
Handles security related exceptions.
GetResponseForExceptionEvent | $event |
Request | $request |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/Firewall/ExceptionListener.html