AccessStorage

Read onlyYes

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

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Constants

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

Properties

$currentTimestamp  : int
$factory  : AccessFactory
$logger  : LoggerInterface

Methods

__construct()  : mixed
addClaim()  : void
addGrant()  : void
findClaimById()  : AccessClaim|null
findClaimBySubject()  : AccessClaim|null
findGrantsBySubject()  : array
removeClaim()  : void
removeGrant()  : void
commitItems()  : void
fetchClaims()  : array
fetchGrants()  : array
fetchItems()  : array
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

protected int $currentTimestamp

Methods

commitItems()

protected commitItems(string $sessionKey, array $items) : void
Parameters
$sessionKey : string
$items : array

fetchClaims()

protected fetchClaims() : array
Return values
array

fetchGrants()

protected fetchGrants() : array
Return values
array

fetchItems()

protected fetchItems(string $sessionKey) : array
Parameters
$sessionKey : string
Return values
array
On this page

Search results