InjectExtension
final class InjectExtension extends CompilerExtension
Calls inject methods and fills #[Inject] properties.
Constants
| TagInject |
|
| TAG_INJECT |
|
Methods
Schema
getConfigSchema()
Returns configuration schema.
void
beforeCompile()
Adjusts the container before compilation. Override in subclasses.
static array
getInjectMethods(string $class)
Returns list of inject method names, ordered from parent to child class.
static array
getInjectProperties(string $class)
Returns list of injectable properties with their types.
static void
callInjects(Container $container, object $service)
Calls inject methods and fills inject properties on the given service.
Details
at line 28
Schema
getConfigSchema()
Returns configuration schema.
at line 34
void
beforeCompile()
Adjusts the container before compilation. Override in subclasses.
at line 99
static array
getInjectMethods(string $class)
| internal |
Returns list of inject method names, ordered from parent to child class.
at line 121
static array
getInjectProperties(string $class)
| internal |
Returns list of injectable properties with their types.
at line 142
static void
callInjects(Container $container, object $service)
Calls inject methods and fills inject properties on the given service.