UserMaxLevelResolverTrait
Standalone trait for the {@see UserMaxLevelResolver} dependency.
Mirrors the convention used by the other auth model / edge / service
traits — a single init key, a typed nullable property, and a fluent
initialize…() method that the consuming class chains in its
constructor.
Tags
Table of Contents
Constants
- USER_MAX_LEVEL_RESOLVER : string = 'userMaxLevelResolver'
- `$init` key carrying the DI identifier of the resolver service.
Properties
- $userMaxLevelResolver : UserMaxLevelResolver|null
- The resolver instance, or `null` when the auth feature is disabled / the resolver is not wired in DI.
Methods
- initializeUserMaxLevelResolver() : static
- Initializes the user max-level resolver dependency from the `$init` array.
Constants
USER_MAX_LEVEL_RESOLVER
`$init` key carrying the DI identifier of the resolver service.
public
string
USER_MAX_LEVEL_RESOLVER
= 'userMaxLevelResolver'
Properties
$userMaxLevelResolver
The resolver instance, or `null` when the auth feature is disabled / the resolver is not wired in DI.
protected
UserMaxLevelResolver|null
$userMaxLevelResolver
= null
Methods
initializeUserMaxLevelResolver()
Initializes the user max-level resolver dependency from the `$init` array.
protected
initializeUserMaxLevelResolver(array<string|int, mixed> $init, Container|null $container) : static
Parameters
- $init : array<string|int, mixed>
-
The initialization array.
- $container : Container|null
-
The DI container.