Classes/Helper.php
public function invalidateToken(Token $token)
    {
        $this->tokenCache->remove($token->getHash());

        $this->logger->log(sprintf('Deleted token %s.', $token->getIdentifier()), LOG_INFO);
    }
public function invalidateToken(Token $token)
    {
        $this->tokenCache->remove($token->getHash());

        $this->logger->log(sprintf('Deleted token %s.', $token->getIdentifier()), LOG_INFO);
    }
public function invalidateToken ( Token $ token ) { $ this -> tokenCache -> remove ( $ token -> getHash ( ) ) ; $ this -> logger -> log ( sprintf ( 'Deleted token %s.' , $ token -> getIdentifier ( ) ) , LOG_INFO ) ; }
Removes the given token from the token cache.

This is only necessary if the 'preserveToken' parameter of the token's preset is true.
Otherwise tokens are deleted automatically.

@param Token $token
@return void
Removes the given token from the token cache .