AbstractConfigurator
in package
AbstractYes
Table of Contents
Constants
- FACTORY = 'unknown'
Properties
- $valuePreProcessor : callable(mixed, bool): mixed|null
Methods
- __call() : mixed
- __serialize() : array<string|int, mixed>
- __unserialize() : void
- processValue() : mixed
- Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
Constants
FACTORY
public
mixed
FACTORY
= 'unknown'
Properties
$valuePreProcessor
public
static callable(mixed, bool): mixed|null
$valuePreProcessor
Methods
__call()
public
__call(string $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : string
- $args : array<string|int, mixed>
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
processValue()
Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
public
static processValue(mixed $value[, bool $allowServices = false ]) : mixed
Parameters
- $value : mixed
- $allowServices : bool = false
-
whether Definition and Reference are allowed; by default, only scalars, arrays and enum are
Return values
mixed —the value, optionally cast to a Definition/Reference