class Helpers

internal  
 

The DI helpers.

Methods

static mixed
expand($var, array $params, $recursive = false)

Expands %placeholders%.

static array
autowireArguments(ReflectionFunctionAbstract $method, array $arguments, $container)

Generates list of arguments using autowiring.

static array
filterArguments(array $args)

Removes ... and process constants recursively.

static mixed
prefixServiceName($config, $namespace)

Replaces @extension with real extension name in service definition.

static string|null
parseAnnotation(Reflector $ref, $name)

Returns an annotation value.

static string|null
static 
normalizeClass($type)

No description

Details

at line 31
static mixed expand($var, array $params, $recursive = false)

Expands %placeholders%.

Parameters

$var
array $params
$recursive

Return Value

mixed

Exceptions

InvalidArgumentException

at line 99
static array autowireArguments(ReflectionFunctionAbstract $method, array $arguments, $container)

Generates list of arguments using autowiring.

Parameters

ReflectionFunctionAbstract $method
array $arguments
$container

Return Value

array

Exceptions

ServiceCreationException

at line 168
static array filterArguments(array $args)

Removes ... and process constants recursively.

Parameters

array $args

Return Value

array

at line 192
static mixed prefixServiceName($config, $namespace)

Replaces @extension with real extension name in service definition.

Parameters

$config
$namespace

Return Value

mixed

at line 216
static string|null parseAnnotation(Reflector $ref, $name)

Returns an annotation value.

Parameters

Reflector $ref
$name

Return Value

string|null

at line 231
static string|null getReturnType(ReflectionFunctionAbstract $func)

No description

Parameters

ReflectionFunctionAbstract $func

Return Value

string|null

at line 249
static normalizeClass($type)

No description

Parameters

$type

Traits

StaticClass