Oihana PHP Arango

PoliciesModelTrait

Standalone trait for the `policies` Documents model dependency.

Extracted from ZitadelServiceTrait so any controller / trait needing the policies model can opt-in independently — typically used alongside an edge trait such as ServiceHasPoliciesTrait or its application counterpart, but composable on its own.

Tags
author

Marc Alcaraz

Table of Contents

Constants

POLICIES_MODEL  : string = 'policiesModel'
Initialization key for the policies Documents model.

Properties

$policiesModel  : Documents|null
The policies Documents model.

Methods

initializePoliciesModel()  : static
Initializes the policies model dependency from the $init array.

Constants

POLICIES_MODEL

Initialization key for the policies Documents model.

public string POLICIES_MODEL = 'policiesModel'

Properties

Methods

initializePoliciesModel()

Initializes the policies model dependency from the $init array.

protected initializePoliciesModel(array<string|int, mixed> $init, Container|null $container) : static
Parameters
$init : array<string|int, mixed>

The initialization array.

$container : Container|null

The DI container.

Tags
throws
ContainerExceptionInterface
NotFoundExceptionInterface
Return values
static
On this page

Search results