ApisModelTrait
Standalone trait for the `apis` Documents model dependency.
Used by controllers / traits that need to resolve the active API registry (typically through ApiResolverTrait which composes this one to add the human-identifier-to-_key resolution helpers).
Tags
Table of Contents
Constants
- APIS_MODEL : string = 'apisModel'
- Initialization key for the apis Documents model.
Properties
- $apisModel : Documents|null
- The apis Documents model.
Methods
- initializeApisModel() : static
- Initializes the apis model dependency from the $init array.
Constants
APIS_MODEL
Initialization key for the apis Documents model.
public
string
APIS_MODEL
= 'apisModel'
Properties
$apisModel
The apis Documents model.
protected
Documents|null
$apisModel
= null
Methods
initializeApisModel()
Initializes the apis model dependency from the $init array.
protected
initializeApisModel(array<string|int, mixed> $init, Container|null $container) : static
Parameters
- $init : array<string|int, mixed>
-
The initialization array.
- $container : Container|null
-
The DI container.