HubSessionKeyStorageInterface
in
Interface HubSessionKeyRepositoryInterface
Tags
Table of Contents
- findAndDeleteByAuthHash() : HubSessionKey|null
- Find the HubSessionKey in the filesystem and delete the file immediately.
- store() : HubSessionKeyStorage
- Stores the HubSessionKey and the filesystem.
Methods
findAndDeleteByAuthHash()
Find the HubSessionKey in the filesystem and delete the file immediately.
public
findAndDeleteByAuthHash(AuthHash $authHash) : HubSessionKey|null
Parameters
- $authHash : AuthHash
-
The hub authorization hash identifier.
Return values
HubSessionKey|null —Returns a HubSessionKey instance or null if nothing was found.
store()
Stores the HubSessionKey and the filesystem.
public
store(HubSessionKey $hubSessionKey, AuthHash $authHash) : HubSessionKeyStorage
Parameters
- $hubSessionKey : HubSessionKey
-
The session key to be stored.
- $authHash : AuthHash
-
The authorization hash identifier.
Return values
HubSessionKeyStorage —Returns same class instance for chained method calls.