FileTokenRepository
class FileTokenRepository implements TokenRepositoryInterface (View source)
Class FileTokenRepository.
Properties
protected string | $tokenFile | Token file. |
Methods
string
getTokenFile()
Get token file.
setTokenFile(string $tokenFile)
Set token file.
__construct(string $tokenFile = 'token.txt')
Constructor.
create(array $attributes)
Create token.
TokenInterface|null
retrieve(string $access_token = null)
Retrieve token.
update(mixed $access_token, array $attributes)
Updates token.
void
delete(string $access_token)
Destroy token.
Details
at line 28
string
getTokenFile()
Get token file.
at line 38
setTokenFile(string $tokenFile)
Set token file.
at line 48
__construct(string $tokenFile = 'token.txt')
Constructor.
at line 56
TokenInterface
create(array $attributes)
Create token.
at line 73
TokenInterface|null
retrieve(string $access_token = null)
Retrieve token.
Specified token, or any token available in storage.
at line 95
TokenInterface
update(mixed $access_token, array $attributes)
Updates token.
at line 124
void
delete(string $access_token)
Destroy token.