PHP Class Nette\DI\Extensions\InjectExtension

Inheritance: extends Nette\DI\CompilerExtension
Show file Open project: nette/di Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
checkType ( $class, $name, $type, $container = NULL )
updateDefinition ( ServiceDefinition $def )

Method Details

beforeCompile() public method

public beforeCompile ( )

callInjects() public static method

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

getInjectMethods() public static method

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

getInjectProperties() public static method

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