class Compiler

DI container compiler.

Constants

private SERVICES

private PARAMETERS

private DI

Methods

__construct(ContainerBuilder $builder = null)

No description

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

Add custom configurator extension.

array
getExtensions(string $type = null)

No description

setClassName(string $className)

No description

addConfig(array $config)

Adds new configuration.

loadConfig(string $file, Loader $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

static void
loadDefinitions() deprecated

No description

static void
loadDefinition() deprecated

No description

Details

at line 50
__construct(ContainerBuilder $builder = null)

No description

Parameters

ContainerBuilder $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 85
array getExtensions(string $type = null)

No description

Parameters

string $type

Return Value

array

at line 93
ContainerBuilder getContainerBuilder()

No description

Return Value

ContainerBuilder

at line 100
Compiler setClassName(string $className)

No description

Parameters

string $className

Return Value

Compiler

at line 111
Compiler addConfig(array $config)

Adds new configuration.

Parameters

array $config

Return Value

Compiler

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

Adds new configuration from file.

Parameters

string $file
Loader $loader

Return Value

Compiler

at line 142
array getConfig() deprecated

deprecated

Returns configuration.

Return Value

array

at line 152
Compiler setDynamicParameterNames(array $names)

Sets the names of dynamic parameters.

Parameters

array $names

Return Value

Compiler

at line 165
Compiler addDependencies(array $deps)

Adds dependencies to the list.

Parameters

array $deps

of ReflectionClass|\ReflectionFunctionAbstract|string

Return Value

Compiler

at line 175
array exportDependencies()

Exports dependencies.

Return Value

array

at line 182
Compiler addExportedTag(string $tag)

No description

Parameters

string $tag

Return Value

Compiler

at line 193
Compiler addExportedType(string $type)

No description

Parameters

string $type

Return Value

Compiler

at line 203
string compile()

No description

Return Value

string

at line 212
void processExtensions()

internal  
 

No description

Return Value

void

at line 297
string generateCode()

internal  
 

No description

Return Value

string

at line 315
void loadDefinitionsFromConfig(array $configList)

Loads list of service definitions from configuration.

Parameters

array $configList

Return Value

void

at line 323
protected PhpGenerator createPhpGenerator()

No description

Return Value

PhpGenerator

at line 330
static void loadDefinitions() deprecated

deprecated use non-static Compiler::loadDefinitionsFromConfig()

No description

Return Value

void

at line 337
static void loadDefinition() deprecated

deprecated use non-static Compiler::loadDefinitionsFromConfig()

No description

Return Value

void

Traits

Strict class for better experience.