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 50
__construct(ContainerBuilder|null $builder = null)

No description

Parameters

ContainerBuilder|null $builder

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

Add custom configurator extension.

Parameters

string|null $name
CompilerExtension $extension

Return Value

Compiler

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

No description

Parameters

string|null $type

Return Value

array

at line 95
ContainerBuilder getContainerBuilder()

No description

Return Value

ContainerBuilder

at line 102
Compiler setClassName(string $className)

No description

Parameters

string $className

Return Value

Compiler

at line 113
Compiler addConfig(array $config)

Adds new configuration.

Parameters

array $config

Return Value

Compiler

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

Adds new configuration from file.

Parameters

string $file
Loader|null $loader

Return Value

Compiler

at line 146
array getConfig() deprecated

deprecated

Returns configuration.

Return Value

array

at line 156
Compiler setDynamicParameterNames(array $names)

Sets the names of dynamic parameters.

Parameters

array $names

Return Value

Compiler

at line 169
Compiler addDependencies(array $deps)

Adds dependencies to the list.

Parameters

array $deps

of ReflectionClass|\ReflectionFunctionAbstract|string

Return Value

Compiler

at line 179
array exportDependencies()

Exports dependencies.

Return Value

array

at line 186
Compiler addExportedTag(string $tag)

No description

Parameters

string $tag

Return Value

Compiler

at line 198
Compiler addExportedType(string $type)

No description

Parameters

string $type

Return Value

Compiler

at line 209
string compile()

No description

Return Value

string

at line 218
void processExtensions()

internal  
 

No description

Return Value

void

at line 305
string generateCode()

internal  
 

No description

Return Value

string

at line 323
void loadDefinitionsFromConfig(array $configList)

Loads list of service definitions from configuration.

Parameters

array $configList

Return Value

void

at line 331
protected PhpGenerator createPhpGenerator()

No description

Return Value

PhpGenerator

Traits

SmartObject