original_string: final public function loginSuccess(Request $request, Response $response, TokenInterface $token)
      {
          // Make sure any old remember-me cookies are cancelled
          $this->cancelCookie($request);
  
          if (!$token->getUser() instanceof UserInterface) {
              if (null !== $this->logger) {
                  $this->logger->debug('Remember-me ignores token since it does not contain a UserInterface implementation.');
              }
  
              return;
          }
  
          if (!$this->isRememberMeRequested($request)) {
              if (null !== $this->logger) {
                  $this->logger->debug('Remember-me was not requested.');
              }
  
              return;
          }
  
          if (null !== $this->logger) {
              $this->logger->debug('Remember-me was requested; setting cookie.');
          }
  
          // Remove attribute from request that sets a NULL cookie.
          // It was set by $this->cancelCookie()
          // (cancelCookie does other things too for some RememberMeServices
          // so we should still call it at the start of this method)
          $request->attributes->remove(self::COOKIE_ATTR_NAME);
  
          $this->onLoginSuccess($request, $response, $token);
      }
code: final public function loginSuccess(Request $request, Response $response, TokenInterface $token)
      {
          // Make sure any old remember-me cookies are cancelled
          $this->cancelCookie($request);
  
          if (!$token->getUser() instanceof UserInterface) {
              if (null !== $this->logger) {
                  $this->logger->debug('Remember-me ignores token since it does not contain a UserInterface implementation.');
              }
  
              return;
          }
  
          if (!$this->isRememberMeRequested($request)) {
              if (null !== $this->logger) {
                  $this->logger->debug('Remember-me was not requested.');
              }
  
              return;
          }
  
          if (null !== $this->logger) {
              $this->logger->debug('Remember-me was requested; setting cookie.');
          }
  
          // Remove attribute from request that sets a NULL cookie.
          // It was set by $this->cancelCookie()
          // (cancelCookie does other things too for some RememberMeServices
          // so we should still call it at the start of this method)
          $request->attributes->remove(self::COOKIE_ATTR_NAME);
  
          $this->onLoginSuccess($request, $response, $token);
      }
code_tokens: final public function loginSuccess ( Request $ request , Response $ response , TokenInterface $ token ) { // Make sure any old remember-me cookies are cancelled $ this -> cancelCookie ( $ request ) ; if ( ! $ token -> getUser ( ) instanceof UserInterface ) { if ( null !== $ this -> logger ) { $ this -> logger -> debug ( 'Remember-me ignores token since it does not contain a UserInterface implementation.' ) ; } return ; } if ( ! $ this -> isRememberMeRequested ( $ request ) ) { if ( null !== $ this -> logger ) { $ this -> logger -> debug ( 'Remember-me was not requested.' ) ; } return ; } if ( null !== $ this -> logger ) { $ this -> logger -> debug ( 'Remember-me was requested; setting cookie.' ) ; } // Remove attribute from request that sets a NULL cookie. // It was set by $this->cancelCookie() // (cancelCookie does other things too for some RememberMeServices // so we should still call it at the start of this method) $ request -> attributes -> remove ( self :: COOKIE_ATTR_NAME ) ; $ this -> onLoginSuccess ( $ request , $ response , $ token ) ; }
docstring: Implementation for RememberMeServicesInterface. This is called when an
  authentication is successful.
docstring_tokens: Implementation for RememberMeServicesInterface . This is called when an authentication is successful .