Documentation

ContainerConfigurator extends AbstractConfigurator
in package

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

Constants

FACTORY  = 'container'

Properties

$valuePreProcessor  : callable(mixed, bool): mixed|null
$anonymousCount  : int
$container  : ContainerBuilder
$env  : string|null
$file  : string
$instanceof  : array<string|int, mixed>
$loader  : PhpFileLoader
$path  : string

Methods

__call()  : mixed
__construct()  : mixed
__serialize()  : array<string|int, mixed>
__unserialize()  : void
env()  : string|null
Get the current environment to be able to write conditional configuration.
extension()  : void
import()  : void
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

Properties

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>

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) : void
Parameters
$namespace : string
$config : array<string|int, mixed>

import()

public final import(string $resource[, string|null $type = null ][, bool|string $ignoreErrors = false ]) : void
Parameters
$resource : string
$type : string|null = null
$ignoreErrors : bool|string = false

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

withPath()

public final withPath(string $path) : static
Parameters
$path : string
Return values
static

        
On this page

Search results