class Helpers

The DI helpers.

Traits

Static class.

Methods

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

Expands %placeholders%.

static array
filterArguments(array $args)

Removes .

static mixed
prefixServiceName($config, string $namespace)

Replaces @extension with real extension name in service definition.

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

Returns an annotation value.

static string|null
static string
normalizeClass(string $type)

No description

Details

at line 33
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 filterArguments(array $args)

Removes .

.. and process constants recursively.

Parameters

array $args

Return Value

array

at line 124
static mixed prefixServiceName($config, string $namespace)

Replaces @extension with real extension name in service definition.

Parameters

$config
string $namespace

Return Value

mixed

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

Returns an annotation value.

Parameters

Reflector $ref
string $name

Return Value

string|null

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

Parameters

ReflectionFunctionAbstract $func

Return Value

string|null

at line 183
static string normalizeClass(string $type)

Parameters

string $type

Return Value

string