Compiler
class Compiler extends Object
DI container compiler.
Methods
No description
No description
No description
Adds new configuration from file.
Returns configuration.
Adds a files to the list of dependencies.
Returns the unique list of dependent files.
No description
No description
No description
No description
No description
Parses section 'services' from (unexpanded) configuration file.
Removes ... and process constants recursively.
Details
at line 38
__construct(ContainerBuilder $builder = NULL)
No description
at line 48
Compiler
addExtension($name, CompilerExtension $extension)
Add custom configurator extension.
at line 61
array
getExtensions($type = NULL)
No description
at line 72
ContainerBuilder
getContainerBuilder()
No description
at line 81
Compiler
setClassName($className)
No description
at line 92
Compiler
addConfig(array $config)
Adds new configuration.
at line 103
Compiler
loadConfig($file)
Adds new configuration from file.
at line 116
array
getConfig()
Returns configuration.
at line 126
Compiler
addDependencies(array $files)
Adds a files to the list of dependencies.
at line 137
array
getDependencies()
Returns the unique list of dependent files.
at line 146
ClassType[]|string
compile(array $config = NULL, $className = NULL, $parentName = NULL)
No description
at line 160
processParameters()
internal |
No description
at line 169
processExtensions()
internal |
No description
at line 209
processServices()
internal |
No description
at line 216
generateCode($className, $parentName = NULL)
internal |
No description
at line 249
static void
parseServices(ContainerBuilder $builder, array $config, $namespace = NULL)
Parses section 'services' from (unexpanded) configuration file.
at line 321
static void
parseService(ServiceDefinition $definition, $config)
Parses single service from configuration file.
at line 434
static array
filterArguments(array $args)
Removes ... and process constants recursively.