LogoutListener
LogoutListener
class LogoutListener implements ListenerInterface
LogoutListener logout users.
Methods
__construct(TokenStorageInterface $tokenStorage, HttpUtils $httpUtils, LogoutSuccessHandlerInterface $successHandler, array $options = array(), CsrfTokenManagerInterface $csrfTokenManager = null) Constructor. | ||
addHandler(LogoutHandlerInterface $handler) Adds a logout handler. | ||
handle(GetResponseEvent $event) Performs the logout if requested. |
Details
__construct(TokenStorageInterface $tokenStorage, HttpUtils $httpUtils, LogoutSuccessHandlerInterface $successHandler, array $options = array(), CsrfTokenManagerInterface $csrfTokenManager = null)
Constructor.
addHandler(LogoutHandlerInterface $handler)
Adds a logout handler.
handle(GetResponseEvent $event)
Performs the logout if requested.
If a CsrfTokenManagerInterface instance is available, it will be used to validate the request.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Security/Http/Firewall/LogoutListener.html