Documentation

ParametersConfigurator extends AbstractConfigurator
in package

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

Constants

FACTORY  = 'parameters'

Properties

$valuePreProcessor  : callable(mixed, bool): mixed|null
$container  : ContainerBuilder

Methods

__call()  : mixed
__construct()  : mixed
__invoke()  : $this
__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.
set()  : $this

Constants

Properties

Methods

__call()

public __call(string $method, array<string|int, mixed> $args) : mixed
Parameters
$method : string
$args : array<string|int, mixed>

__invoke()

public final __invoke(string $name, mixed $value) : $this
Parameters
$name : string
$value : mixed
Return values
$this

__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

set()

public final set(string $name, mixed $value) : $this
Parameters
$name : string
$value : mixed
Return values
$this

        
On this page

Search results