TokenStorage
class TokenStorage
Class TokenStorage
Properties
| protected Token | $lastToken |
Methods
__construct(bool $tokenFile)
TokenStorage constructor.
getLastToken()
No description
save(string $filename)
Saves last token to a file.
load(string $filename)
Load token from a serialized formatted file.
__destruct()
Saves the file when shutting down
Details
at line 24
__construct(bool $tokenFile)
TokenStorage constructor.
at line 39
Token
getLastToken()
at line 49
addHeader(RequestInterface $request)
Adds token header to the supplied request.
at line 63
checkResponseForAuthToken(RequestInterface $request, MessageInterface $response)
at line 79
save(string $filename)
Saves last token to a file.
at line 98
load(string $filename)
Load token from a serialized formatted file.
at line 118
__destruct()
Saves the file when shutting down