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

No description

Parameters

ContainerBuilder|null $builder

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

Add custom configurator extension.

Parameters

string|null $name
CompilerExtension $extension

Return Value

Compiler

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

No description

Parameters

string|null $type

Return Value

array

at line 84
ContainerBuilder getContainerBuilder()

No description

Return Value

ContainerBuilder

at line 90
Compiler setClassName(string $className)

No description

Parameters

string $className

Return Value

Compiler

at line 100
Compiler addConfig(array $config)

Adds new configuration.

Parameters

array $config

Return Value

Compiler

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

Adds new configuration from file.

Parameters

string $file
Loader|null $loader

Return Value

Compiler

at line 132
array getConfig() deprecated

deprecated

Returns configuration.

Return Value

array

at line 141
Compiler setDynamicParameterNames(array $names)

Sets the names of dynamic parameters.

Parameters

array $names

Return Value

Compiler

at line 153
Compiler addDependencies(array $deps)

Adds dependencies to the list.

Parameters

array $deps

of ReflectionClass|\ReflectionFunctionAbstract|string

Return Value

Compiler

at line 163
array exportDependencies()

Exports dependencies.

Return Value

array

at line 169
Compiler addExportedTag(string $tag)

No description

Parameters

string $tag

Return Value

Compiler

at line 180
Compiler addExportedType(string $type)

No description

Parameters

string $type

Return Value

Compiler

at line 191
string compile()

No description

Return Value

string

at line 200
void processExtensions()

internal  
 

No description

Return Value

void

at line 286
string generateCode()

internal  
 

No description

Return Value

string

at line 304
void loadDefinitionsFromConfig(array $configList)

Loads list of service definitions from configuration.

Parameters

array $configList

Return Value

void

at line 312
protected PhpGenerator createPhpGenerator()

No description

Return Value

PhpGenerator

Traits

Strict class for better experience.