class Compiler

DI container compiler.

Constants

private Services

private Parameters

private DI

Methods

__construct(ContainerBuilder|null $builder = null)

No description

addExtension(string|null $name, CompilerExtension $extension)

Add custom configurator extension.

array
getExtensions(string|null $type = null)

No description

setClassName(string $className)

No description

addConfig(array $config)

Adds new configuration.

loadConfig(string $file, Loader|null $loader = null)

Adds new configuration from file.

array
getConfig() deprecated

Returns configuration.

setDynamicParameterNames(array $names)

Sets the names of dynamic parameters.

addDependencies(array $deps)

Adds dependencies to the list.

array
exportDependencies()

Exports dependencies.

addExportedTag(string $tag)

No description

addExportedType(string $type)

No description

string
compile()

No description

void
processExtensions()

No description

string
generateCode()

No description

void
loadDefinitionsFromConfig(array $configList)

Loads list of service definitions from configuration.

createPhpGenerator()

No description

Details

at line 38
__construct(ContainerBuilder|null $builder = null)

No description

Parameters

ContainerBuilder|null $builder

at line 50
Compiler addExtension(string|null $name, CompilerExtension $extension)

Add custom configurator extension.

Parameters

string|null $name
CompilerExtension $extension

Return Value

Compiler

at line 74
array getExtensions(string|null $type = null)

No description

Parameters

string|null $type

Return Value

array

at line 82
ContainerBuilder getContainerBuilder()

No description

Return Value

ContainerBuilder

at line 88
Compiler setClassName(string $className)

No description

Parameters

string $className

Return Value

Compiler

at line 98
Compiler addConfig(array $config)

Adds new configuration.

Parameters

array $config

Return Value

Compiler

at line 112
Compiler loadConfig(string $file, Loader|null $loader = null)

Adds new configuration from file.

Parameters

string $file
Loader|null $loader

Return Value

Compiler

at line 130
array getConfig() deprecated

deprecated

Returns configuration.

Return Value

array

at line 139
Compiler setDynamicParameterNames(array $names)

Sets the names of dynamic parameters.

Parameters

array $names

Return Value

Compiler

at line 151
Compiler addDependencies(array $deps)

Adds dependencies to the list.

Parameters

array $deps

of ReflectionClass|\ReflectionFunctionAbstract|string

Return Value

Compiler

at line 161
array exportDependencies()

Exports dependencies.

Return Value

array

at line 167
Compiler addExportedTag(string $tag)

No description

Parameters

string $tag

Return Value

Compiler

at line 178
Compiler addExportedType(string $type)

No description

Parameters

string $type

Return Value

Compiler

at line 189
string compile()

No description

Return Value

string

at line 198
void processExtensions()

internal  
 

No description

Return Value

void

at line 284
string generateCode()

internal  
 

No description

Return Value

string

at line 302
void loadDefinitionsFromConfig(array $configList)

Loads list of service definitions from configuration.

Parameters

array $configList

Return Value

void

at line 311
protected PhpGenerator createPhpGenerator()

No description

Return Value

PhpGenerator