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.

Return Value

Schema

at line 34
void beforeCompile()

Adjusts the container before compilation. Override in subclasses.

Return Value

void

at line 99
static array getInjectMethods(string $class)

internal  
 

Returns list of inject method names, ordered from parent to child class.

Parameters

string $class

Return Value

array

at line 121
static array getInjectProperties(string $class)

internal  
 

Returns list of injectable properties with their types.

Parameters

string $class

Return Value

array

at line 142
static void callInjects(Container $container, object $service)

Calls inject methods and fills inject properties on the given service.

Parameters

Container $container
object $service

Return Value

void