ParametersConfigurator
extends AbstractConfigurator
in package
Tags
Table of Contents
- FACTORY = 'parameters'
- $valuePreProcessor : callable
- $container : mixed
- __call() : mixed
- __construct() : mixed
- __invoke() : $this
- Creates a parameter.
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- processValue() : mixed
- Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
- set() : $this
- Creates a parameter.
Constants
FACTORY
public
mixed
FACTORY
= 'parameters'
Properties
$valuePreProcessor
public
static callable
$valuePreProcessor
(mixed, bool)|null
$container
private
mixed
$container
Methods
__call()
public
__call(string $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : string
- $args : array<string|int, mixed>
Return values
mixed —__construct()
public
__construct(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
Return values
mixed —__invoke()
Creates a parameter.
public
final __invoke(string $name, mixed $value) : $this
Parameters
- $name : string
- $value : mixed
Return values
$this —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__wakeup()
public
__wakeup() : mixed
Return values
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 and arrays are
Return values
mixed —the value, optionally cast to a Definition/Reference
set()
Creates a parameter.
public
final set(string $name, mixed $value) : $this
Parameters
- $name : string
- $value : mixed