PHP 클래스 Nette\DI\Helpers

저자: David Grudl
파일 보기 프로젝트 열기: nette/di 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

autowireArguments() 공개 정적인 메소드

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

expand() 공개 정적인 메소드

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

filterArguments() 공개 정적인 메소드

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

prefixServiceName() 공개 정적인 메소드

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