Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices::logout PHP Method

logout() public method

Implementation for LogoutHandlerInterface. Deletes the cookie.
public logout ( Request $request, Response $response, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
    public function logout(Request $request, Response $response, TokenInterface $token)
    {
        $this->cancelCookie($request);
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function logout(Request $request, Response $response, TokenInterface $token)
 {
     parent::logout($request, $response, $token);
     if (null !== ($cookie = $request->cookies->get($this->options['name'])) && count($parts = $this->decodeCookie($cookie)) === 2) {
         list($series, $tokenValue) = $parts;
         $this->tokenProvider->deleteTokenBySeries($series);
     }
 }