W3cubDocs

/Symfony 2.8

Symfony\Component\Security\Http\Logout\LogoutHandlerInterface

interface LogoutHandlerInterface

Interface that needs to be implemented by LogoutHandlers.

Methods

logout(Request $request, Response $response, TokenInterface $token)

This method is called by the LogoutListener when a user has requested to be logged out.

Details

public logout(Request $request, Response $response, TokenInterface $token)

This method is called by the LogoutListener when a user has requested to be logged out.

Usually, you would unset session variables, or remove cookies, etc.

Parameters

Request $request
Response $response
TokenInterface $token

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Security/Http/Logout/LogoutHandlerInterface.html