class Helpers

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
getInjectProperties(ClassType $class, $container = NULL)

Generates list of properties with annotation @inject.

Details

at line 29
static mixed expand($var, array $params, $recursive = FALSE)

Expands %placeholders%.

Parameters

$var
array $params
$recursive

Return Value

mixed

Exceptions

InvalidArgumentException

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

Generates list of arguments using autowiring.

Parameters

ReflectionFunctionAbstract $method
array $arguments
$container

Return Value

array

at line 150
static array getInjectProperties(ClassType $class, $container = NULL)

Generates list of properties with annotation @inject.

Parameters

ClassType $class
$container

Return Value

array