Fully Qualified Name: | Laminas\Authentication\Storage\NonPersistent |
Implements: | StorageInterface |
Non-Persistent Authentication Storage
Since HTTP Authentication happens again on each request, this will always be re-populated. So there's no need to use sessions, this simple value class will hold the data for rest of the current request.
Name | Description | Defined By |
---|---|---|
clear() | Clears contents from storage | NonPersistent |
isEmpty() | Returns true if and only if storage is empty | NonPersistent |
read() | Returns the contents of storage Behavior is undefined when storage is empty. | NonPersistent |
write() | Writes $contents to storage | NonPersistent |
Clears contents from storage
Returns: void
Returns true if and only if storage is empty
Returns: bool
Returns the contents of storage Behavior is undefined when storage is empty.
Returns: mixed
Writes $contents to storage
Parameter Name | Type | Description |
---|---|---|
$contents | mixed |
Returns: void