final class InjectExtension extends CompilerExtension

Calls inject methods and fills @inject properties.

Constants

TAG_INJECT

Methods

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 with "inject" using autowiring.

Details

at line 26
Schema getConfigSchema()

Returns configuration schema.

Return Value

Schema

at line 32
void beforeCompile()

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.

Return Value

void

at line 89
static array getInjectMethods(string $class)

internal  
 

Generates list of inject methods.

Parameters

string $class

Return Value

array

at line 112
static array getInjectProperties(string $class)

internal  
 

Generates list of properties with annotation @inject.

Parameters

string $class

Return Value

array

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

Calls all methods starting with with "inject" using autowiring.

Parameters

Container $container
object $service

Return Value

void