Symfony2 API
Interface

Symfony\Component\Security\Core\Authentication\RememberMe\TokenProviderInterface

interface TokenProviderInterface

Interface for TokenProviders

Methods

PersistentTokenInterface loadTokenBySeries(string $series)

Loads the active token for the given series.

deleteTokenBySeries(string $series)

Deletes all tokens belonging to series.

updateToken(string $series, string $tokenValue, DateTime $lastUsed)

Updates the token according to this data.

createNewToken(PersistentTokenInterface $token)

Creates a new token.

Details

at line 32
public PersistentTokenInterface loadTokenBySeries(string $series)

Loads the active token for the given series.

Parameters

string $series

Return Value

PersistentTokenInterface

Exceptions

TokenNotFoundException if the token is not found

at line 39
public deleteTokenBySeries(string $series)

Deletes all tokens belonging to series.

Parameters

string $series

at line 50
public updateToken(string $series, string $tokenValue, DateTime $lastUsed)

Updates the token according to this data.

Parameters

string $series
string $tokenValue
DateTime $lastUsed

Exceptions

TokenNotFoundException if the token is not found

at line 57
public createNewToken(PersistentTokenInterface $token)

Creates a new token.

Parameters

PersistentTokenInterface $token