On this page
TokenStorageInterface
interface TokenStorageInterface
The TokenStorageInterface.
Methods
TokenInterface|null | getToken() Returns the current security token. |
|
setToken(TokenInterface $token = null) Sets the authentication token. |
Details
TokenInterface|null getToken()
Returns the current security token.
Return Value
TokenInterface|null | A TokenInterface instance or null if no authentication information is available |
setToken(TokenInterface $token = null)
Sets the authentication token.
Parameters
TokenInterface | $token | A TokenInterface token, or null if no further authentication information should be stored |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Security/Core/Authentication/Token/Storage/TokenStorageInterface.html