AccessStorage implements LoggerAwareInterface uses LoggerAwareTrait

Wrapper for storing `AccessClaim` and `AccessGrant` items in the backend user session storage.

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Interfaces

LoggerAwareInterface

Constants

CLAIM_KEY  = 'backend.sudo-mode.claim'
GRANT_KEY  = 'backend.sudo-mode.grant'

Properties

$currentTimestamp  : int
$factory  : AccessFactory

Methods

__construct()  : mixed
addClaim()  : void
addGrant()  : void
findClaimById()  : AccessClaim|null
findClaimBySubject()  : AccessClaim|null
findGrantsBySubject()  : array<string|int, mixed>
removeClaim()  : void
commitItems()  : void
fetchClaims()  : array<string|int, mixed>
fetchGrants()  : array<string|int, mixed>
fetchItems()  : array<string|int, mixed>
getBackendUser()  : BackendUserAuthentication
subjectMatchesItem()  : bool

Constants

CLAIM_KEY

protected mixed CLAIM_KEY = 'backend.sudo-mode.claim'

GRANT_KEY

protected mixed GRANT_KEY = 'backend.sudo-mode.grant'

Properties

$currentTimestamp read-only

protected int $currentTimestamp

Methods

commitItems()

protected commitItems(string $sessionKey, array<string|int, mixed> $items) : void
Parameters
$sessionKey : string
$items : array<string|int, mixed>

fetchClaims()

protected fetchClaims() : array<string|int, mixed>
Return values
array<string|int, mixed>

fetchGrants()

protected fetchGrants() : array<string|int, mixed>
Return values
array<string|int, mixed>

fetchItems()

protected fetchItems(string $sessionKey) : array<string|int, mixed>
Parameters
$sessionKey : string
Return values
array<string|int, mixed>

        
On this page

Search results