AccessFactory

Factory to create `AccessClaim`, `AccessGrant` and `RouteAccessSubject` instances.

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Constants

DEFAULT_CLAIM_LIFETIME  = 300

Properties

$currentTimestamp  : int

Methods

__construct()  : mixed
buildClaimForSubjectRequest()  : AccessClaim
buildClaimFromArray()  : AccessClaim
buildGrantForSubject()  : AccessGrant
buildGrantFromArray()  : AccessGrant
buildRouteAccessSubject()  : RouteAccessSubject
buildSubjectFromArray()  : AccessSubjectInterface

Constants

DEFAULT_CLAIM_LIFETIME

protected mixed DEFAULT_CLAIM_LIFETIME = 300

Properties

$currentTimestamp read-only

protected int $currentTimestamp

Methods

buildClaimFromArray()

public buildClaimFromArray(array<string|int, mixed> $data) : AccessClaim
Parameters
$data : array<string|int, mixed>
Return values
AccessClaim

buildGrantFromArray()

public buildGrantFromArray(array<string|int, mixed> $data) : AccessGrant
Parameters
$data : array<string|int, mixed>
Return values
AccessGrant

        
On this page

Search results