Compiler
class Compiler
DI container compiler.
Methods
No description
No description
No description
Adds new configuration from file.
Returns configuration.
Sets the names of dynamic parameters.
Adds dependencies to the list.
Exports dependencies.
No description
No description
No description
No description
No description
Adds service definitions from configuration.
Parses single service definition from configuration.
No description
Details
at line 43
__construct(ContainerBuilder $builder = null)
No description
at line 55
Compiler
addExtension($name, CompilerExtension $extension)
Add custom configurator extension.
at line 70
array
getExtensions($type = null)
No description
at line 81
ContainerBuilder
getContainerBuilder()
No description
at line 90
Compiler
setClassName($className)
No description
at line 101
Compiler
addConfig(array $config)
Adds new configuration.
at line 112
Compiler
loadConfig($file)
Adds new configuration from file.
at line 125
array
getConfig()
Returns configuration.
at line 135
Compiler
setDynamicParameterNames(array $names)
Sets the names of dynamic parameters.
at line 147
Compiler
addDependencies(array $deps)
Adds dependencies to the list.
at line 158
array
exportDependencies()
Exports dependencies.
at line 167
string
compile()
No description
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.
at line 356
static void
loadDefinition(ServiceDefinition $definition, $config)
Parses single service definition from configuration.
at line 489
static
filterArguments(array $args)
deprecated
deprecated
No description
at line 496
static
parseServices(ContainerBuilder $builder, array $config, $namespace = null)
deprecated
deprecated
No description
at line 503
static
parseService(ServiceDefinition $definition, $config)
deprecated
deprecated
No description