ContainerConfigurator
extends AbstractConfigurator
in package
Tags
Table of Contents
- FACTORY = 'container'
- $valuePreProcessor : callable
- $anonymousCount : mixed
- $container : mixed
- $env : mixed
- $file : mixed
- $instanceof : mixed
- $loader : mixed
- $path : mixed
- __call() : mixed
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- env() : string|null
- Get the current environment to be able to write conditional configuration.
- extension() : mixed
- import() : mixed
- parameters() : ParametersConfigurator
- processValue() : mixed
- Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
- services() : ServicesConfigurator
- withPath() : static
Constants
FACTORY
public
mixed
FACTORY
= 'container'
Properties
$valuePreProcessor
public
static callable
$valuePreProcessor
(mixed, bool)|null
$anonymousCount
private
mixed
$anonymousCount
= 0
$container
private
mixed
$container
$env
private
mixed
$env
$file
private
mixed
$file
$instanceof
private
mixed
$instanceof
$loader
private
mixed
$loader
$path
private
mixed
$path
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, PhpFileLoader $loader, array<string|int, mixed> &$instanceof, string $path, string $file[, string|null $env = null ]) : mixed
Parameters
- $container : ContainerBuilder
- $loader : PhpFileLoader
- $instanceof : array<string|int, mixed>
- $path : string
- $file : string
- $env : string|null = null
Return values
mixed —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__wakeup()
public
__wakeup() : mixed
Return values
mixed —env()
Get the current environment to be able to write conditional configuration.
public
final env() : string|null
Return values
string|null —extension()
public
final extension(string $namespace, array<string|int, mixed> $config) : mixed
Parameters
- $namespace : string
- $config : array<string|int, mixed>
Return values
mixed —import()
public
final import(string $resource[, string|null $type = null ][, mixed $ignoreErrors = false ]) : mixed
Parameters
- $resource : string
- $type : string|null = null
- $ignoreErrors : mixed = false
Return values
mixed —parameters()
public
final parameters() : ParametersConfigurator
Return values
ParametersConfigurator —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
services()
public
final services() : ServicesConfigurator
Return values
ServicesConfigurator —withPath()
public
final withPath(string $path) : static
Parameters
- $path : string