PHP Class Nette\DI\Extensions\InjectExtension

Inheritance: extends Nette\DI\CompilerExtension
Afficher le fichier Open project: nette/di Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
checkType ( $class, $name, $type, $container = NULL )
updateDefinition ( ServiceDefinition $def )

Method Details

beforeCompile() public méthode

public beforeCompile ( )

callInjects() public static méthode

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

getInjectMethods() public static méthode

Generates list of inject methods.
public static getInjectMethods ( $class ) : array
Résultat array

getInjectProperties() public static méthode

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