PHP 클래스 Nette\DI\Extensions\InjectExtension

상속: extends Nette\DI\CompilerExtension
파일 보기 프로젝트 열기: nette/di 1 사용 예제들

공개 메소드들

메소드 설명
beforeCompile ( )
callInjects ( Container $container, $service ) : void Calls all methods starting with with "inject" using autowiring.
getInjectMethods ( $class ) : array Generates list of inject methods.
getInjectProperties ( $class ) : array Generates list of properties with annotation @inject.

비공개 메소드들

메소드 설명
checkType ( $class, $name, $type, $container = NULL )
updateDefinition ( ServiceDefinition $def )

메소드 상세

beforeCompile() 공개 메소드

public beforeCompile ( )

callInjects() 공개 정적인 메소드

Calls all methods starting with with "inject" using autowiring.
public static callInjects ( Container $container, $service ) : void
$container Nette\DI\Container
리턴 void

getInjectMethods() 공개 정적인 메소드

Generates list of inject methods.
public static getInjectMethods ( $class ) : array
리턴 array

getInjectProperties() 공개 정적인 메소드

Generates list of properties with annotation @inject.
public static getInjectProperties ( $class ) : array
리턴 array