Documentation

CacheTokenVerifier
in package
implements TokenVerifierInterface

Tags
author

Jordi Boggiano j.boggiano@seld.be

Table of Contents

Interfaces

TokenVerifierInterface

Properties

$cache  : mixed
$cacheKeyPrefix  : string
$outdatedTokenTtl  : int

Methods

__construct()  : mixed
updateExistingToken()  : void
Updates an existing token with a new token value and lastUsed time.
verifyToken()  : bool
Verifies that the given $token is valid.
getCacheKey()  : string

Properties

Methods

__construct()

public __construct(CacheItemPoolInterface $cache[, int $outdatedTokenTtl = 60 ][, string $cacheKeyPrefix = 'rememberme-stale-' ]) : mixed
Parameters
$cache : CacheItemPoolInterface
$outdatedTokenTtl : int = 60

How long the outdated token should still be considered valid. Defaults to 60, which matches how often the PersistentRememberMeHandler will at most refresh tokens. Increasing to more than that is not recommended, but you may use a lower value.

$cacheKeyPrefix : string = 'rememberme-stale-'

        
On this page

Search results