Symfony\Component\Security\Http\Logout\LogoutHandlerInterface::logout
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.
Signature
public function logout(Request
$request,
Response
$response,
TokenInterface
$token )