AccessFactory
Factory to create `AccessClaim`, `AccessGrant` and `RouteAccessSubject` instances.
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
__construct()
public
__construct() : mixed
buildClaimForSubjectRequest()
public
buildClaimForSubjectRequest(ServerRequestInterface $request, AccessSubjectInterface $subject) : AccessClaim
Parameters
- $request : ServerRequestInterface
- $subject : AccessSubjectInterface
Return values
AccessClaimbuildClaimFromArray()
public
buildClaimFromArray(array<string|int, mixed> $data) : AccessClaim
Parameters
- $data : array<string|int, mixed>
Return values
AccessClaimbuildGrantForSubject()
public
buildGrantForSubject(AccessSubjectInterface $subject) : AccessGrant
Parameters
- $subject : AccessSubjectInterface
Return values
AccessGrantbuildGrantFromArray()
public
buildGrantFromArray(array<string|int, mixed> $data) : AccessGrant
Parameters
- $data : array<string|int, mixed>
Return values
AccessGrantbuildRouteAccessSubject()
public
buildRouteAccessSubject(ServerRequestInterface $request) : RouteAccessSubject
Parameters
- $request : ServerRequestInterface
Return values
RouteAccessSubjectbuildSubjectFromArray()
public
buildSubjectFromArray(array<string|int, mixed> $data) : AccessSubjectInterface
Parameters
- $data : array<string|int, mixed>