TokenService
in package
Class TokenService
Table of Contents
- $cacheDir : string
- $securityToken : SecurityToken
- __construct() : mixed
- CacheTokenRepository constructor.
- getCacheToken() : string
- Returns the cache token.
- cacheFile() : string
- Cache file path.
Properties
$cacheDir
private
string
$cacheDir
$securityToken
private
SecurityToken
$securityToken
Methods
__construct()
CacheTokenRepository constructor.
public
__construct(SecurityToken $securityToken, Path $path) : mixed
Parameters
- $securityToken : SecurityToken
- $path : Path
Return values
mixed —getCacheToken()
Returns the cache token.
public
getCacheToken() : string
If the cache token not exists, a new one will be created an returned.
Return values
string —cacheFile()
Cache file path.
private
cacheFile() : string