InjectExtension
final class InjectExtension extends CompilerExtension
Calls inject methods and fills @inject properties.
Constants
TagInject |
|
deprecated TAG_INJECT |
|
Methods
Schema
getConfigSchema()
Returns configuration schema.
void
beforeCompile()
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
static array
getInjectMethods(string $class)
Generates list of inject methods.
static array
getInjectProperties(string $class)
Generates list of properties with annotation @inject.
static void
callInjects(Container $container, object $service)
Calls all methods starting with "inject" using autowiring.
Details
at line 29
Schema
getConfigSchema()
Returns configuration schema.
at line 35
void
beforeCompile()
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
at line 95
static array
getInjectMethods(string $class)
internal |
Generates list of inject methods.
at line 118
static array
getInjectProperties(string $class)
internal |
Generates list of properties with annotation @inject.
at line 152
static void
callInjects(Container $container, object $service)
Calls all methods starting with "inject" using autowiring.