InjectExtension
class InjectExtension extends CompilerExtension
Calls inject methods and fills @inject properties.
Constants
TAG_INJECT |
|
Methods
void
beforeCompile()
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
static array
getInjectMethods($class)
Generates list of inject methods.
static array
getInjectProperties($class)
Generates list of properties with annotation @inject.
static void
callInjects(Container $container, $service)
Calls all methods starting with with "inject" using autowiring.
Details
at line 23
void
beforeCompile()
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
at line 72
static array
getInjectMethods($class)
internal |
Generates list of inject methods.
at line 94
static array
getInjectProperties($class)
internal |
Generates list of properties with annotation @inject.
at line 115
static void
callInjects(Container $container, $service)
Calls all methods starting with with "inject" using autowiring.