interface ClearableTokenStorageInterface implements TokenStorageInterface
string | getToken(string $tokenId) Reads a stored CSRF token. | from TokenStorageInterface |
setToken(string $tokenId, string $token) Stores a CSRF token. | from TokenStorageInterface | |
string|null | removeToken(string $tokenId) Removes a CSRF token. | from TokenStorageInterface |
bool | hasToken(string $tokenId) Checks whether a token with the given token ID exists. | from TokenStorageInterface |
clear() Removes all CSRF tokens. |
Reads a stored CSRF token.
string | $tokenId | The token ID |
string | The stored token |
TokenNotFoundException | If the token ID does not exist |
Stores a CSRF token.
string | $tokenId | The token ID |
string | $token | The CSRF token |
Removes a CSRF token.
string | $tokenId | The token ID |
string|null | Returns the removed token if one existed, NULL otherwise |
Checks whether a token with the given token ID exists.
string | $tokenId | The token ID |
bool | Whether a token exists with the given ID |
Removes all CSRF tokens.
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Csrf/TokenStorage/ClearableTokenStorageInterface.html