PHP Class Nette\DI\Helpers

Author: David Grudl
Datei anzeigen Open project: nette/di Class Usage Examples

Public Methods

Method Description
autowireArguments ( ReflectionFunctionAbstract $method, array $arguments, $container ) : array Generates list of arguments using autowiring.
expand ( $var, array $params, $recursive = FALSE ) : mixed Expands %placeholders%.
filterArguments ( array $args ) : array Removes .
prefixServiceName ( $config, $namespace ) : mixed Replaces @extension with real extension name in service definition.

Method Details

autowireArguments() public static method

Generates list of arguments using autowiring.
public static autowireArguments ( ReflectionFunctionAbstract $method, array $arguments, $container ) : array
$method ReflectionFunctionAbstract
$arguments array
return array

expand() public static method

Expands %placeholders%.
public static expand ( $var, array $params, $recursive = FALSE ) : mixed
$params array
return mixed

filterArguments() public static method

.. and process constants recursively.
public static filterArguments ( array $args ) : array
$args array
return array

prefixServiceName() public static method

Replaces @extension with real extension name in service definition.
public static prefixServiceName ( $config, $namespace ) : mixed
return mixed