Author: Johannes M. Schmitt (schmittjoh@gmail.com)
Inheritance: implements Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface, implements Symfony\Component\Security\Http\Logout\LogoutHandlerInterface
 /**
  * {@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);
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function cancelCookie(Request $request)
 {
     // Delete cookie on the client
     parent::cancelCookie($request);
     // Delete cookie from the tokenProvider
     if (null !== ($cookie = $request->cookies->get($this->options['name'])) && count($parts = $this->decodeCookie($cookie)) === 2) {
         list($series) = $parts;
         $this->tokenProvider->deleteTokenBySeries($series);
     }
 }