interface TokenStorageInterface
Stores CSRF tokens.
string | getToken(string $tokenId) Reads a stored CSRF token. | |
setToken(string $tokenId, string $token) Stores a CSRF token. | ||
string|null | removeToken(string $tokenId) Removes a CSRF token. | |
bool | hasToken(string $tokenId) Checks whether a token with the given token ID exists. |
Reads a stored CSRF token.
Stores a CSRF token.
Removes a CSRF token.
Checks whether a token with the given token ID exists.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.html