Documentation

ContainerConfigurator extends AbstractConfigurator
in package

Tags
author

Nicolas Grekas p@tchwork.com

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

Properties

Methods

__call()

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

__sleep()

public __sleep() : array<string|int, mixed>
Return values
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) : 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

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

withPath()

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

Search results