class Compiler

DI container compiler.

Methods

__construct(ContainerBuilder $builder = null)

No description

addExtension($name, CompilerExtension $extension)

Add custom configurator extension.

array
getExtensions($type = null)

No description

setClassName($className)

No description

addConfig(array $config)

Adds new configuration.

loadConfig($file)

Adds new configuration from file.

array
getConfig()

Returns configuration.

setDynamicParameterNames(array $names)

Sets the names of dynamic parameters.

addDependencies(array $deps)

Adds dependencies to the list.

array
exportDependencies()

Exports dependencies.

string
compile()

No description

processParameters()

No description

processExtensions()

No description

processServices()

No description

generateCode()

No description

static void
loadDefinitions(ContainerBuilder $builder, array $services, $namespace = null)

Adds service definitions from configuration.

static void
loadDefinition(ServiceDefinition $definition, $config)

Parses single service definition from configuration.

static 
filterArguments(array $args) deprecated

No description

static 
parseServices(ContainerBuilder $builder, array $config, $namespace = null) deprecated

No description

static 
parseService(ServiceDefinition $definition, $config) deprecated

No description

Details

at line 43
__construct(ContainerBuilder $builder = null)

No description

Parameters

ContainerBuilder $builder

at line 55
Compiler addExtension($name, CompilerExtension $extension)

Add custom configurator extension.

Parameters

$name
CompilerExtension $extension

Return Value

Compiler

at line 70
array getExtensions($type = null)

No description

Parameters

$type

Return Value

array

at line 81
ContainerBuilder getContainerBuilder()

No description

Return Value

ContainerBuilder

at line 90
Compiler setClassName($className)

No description

Parameters

$className

Return Value

Compiler

at line 101
Compiler addConfig(array $config)

Adds new configuration.

Parameters

array $config

Return Value

Compiler

at line 112
Compiler loadConfig($file)

Adds new configuration from file.

Parameters

$file

Return Value

Compiler

at line 125
array getConfig()

Returns configuration.

Return Value

array

at line 135
Compiler setDynamicParameterNames(array $names)

Sets the names of dynamic parameters.

Parameters

array $names

Return Value

Compiler

at line 147
Compiler addDependencies(array $deps)

Adds dependencies to the list.

Parameters

array $deps

Return Value

Compiler

at line 158
array exportDependencies()

Exports dependencies.

Return Value

array

at line 167
string compile()

No description

Return Value

string

at line 183
processParameters()

internal  
 

No description

at line 196
processExtensions()

internal  
 

No description

at line 233
processServices()

internal  
 

No description

at line 242
generateCode()

internal  
 

No description

at line 275
static void loadDefinitions(ContainerBuilder $builder, array $services, $namespace = null)

Adds service definitions from configuration.

Parameters

ContainerBuilder $builder
array $services
$namespace

Return Value

void

at line 356
static void loadDefinition(ServiceDefinition $definition, $config)

Parses single service definition from configuration.

Parameters

ServiceDefinition $definition
$config

Return Value

void

at line 489
static filterArguments(array $args) deprecated

deprecated

No description

Parameters

array $args

at line 496
static parseServices(ContainerBuilder $builder, array $config, $namespace = null) deprecated

deprecated

No description

Parameters

ContainerBuilder $builder
array $config
$namespace

at line 503
static parseService(ServiceDefinition $definition, $config) deprecated

deprecated

No description

Parameters

ServiceDefinition $definition
$config

Traits

SmartObject