class InMemoryTokenProvider implements TokenProviderInterface
This class is used for testing purposes, and is not really suited for production.
PersistentTokenInterface | loadTokenBySeries(string $series) Loads the active token for the given series. | |
updateToken(string $series, string $tokenValue, DateTime $lastUsed) Updates the token according to this data. | ||
deleteTokenBySeries(string $series) Deletes all tokens belonging to series. | ||
createNewToken(PersistentTokenInterface $token) Creates a new token. |
Loads the active token for the given series.
string | $series |
PersistentTokenInterface |
TokenNotFoundException | if the token is not found |
Updates the token according to this data.
string | $series | |
string | $tokenValue | |
DateTime | $lastUsed |
TokenNotFoundException | if the token is not found |
Deletes all tokens belonging to series.
string | $series |
Creates a new token.
PersistentTokenInterface | $token |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Core/Authentication/RememberMe/InMemoryTokenProvider.html