TokenStorage
in package
implements
TokenStorageInterface, ResetInterface
TokenStorage contains a TokenInterface.
It gives access to the token representing the current user authentication.
Tags
Interfaces, Classes, Traits and Enums
- TokenStorageInterface
- The TokenStorageInterface.
- ResetInterface
- Provides a way to reset an object to its initial state.
Table of Contents
- $initializer : mixed
- $token : mixed
- getToken() : TokenInterface|null
- Returns the current security token.
- reset() : mixed
- setInitializer() : void
- setToken() : mixed
- Sets the authentication token.
Properties
$initializer
private
mixed
$initializer
$token
private
mixed
$token
Methods
getToken()
Returns the current security token.
public
getToken() : TokenInterface|null
Return values
TokenInterface|null —A TokenInterface instance or null if no authentication information is available
reset()
public
reset() : mixed
Return values
mixed —setInitializer()
public
setInitializer(callable|null $initializer) : void
Parameters
- $initializer : callable|null
Return values
void —setToken()
Sets the authentication token.
public
setToken([TokenInterface $token = null ]) : mixed
Parameters
- $token : TokenInterface = null
-
A TokenInterface token, or null if no further authentication information should be stored