class Compiler extends Object

DI container compiler.

Properties

CompilerExtension[] read-only $extensions
ContainerBuilder read-only $containerBuilder
array read-only $config

Methods

__construct(ContainerBuilder $builder = NULL)

No description

addExtension($name, CompilerExtension $extension)

Add custom configurator extension.

array
getExtensions($type = NULL)

No description

array
getConfig()

Returns configuration.

string
compile(array $config, $className, $parentName)

No description

processParameters()

No description

processExtensions()

No description

processServices()

No description

generateCode($className, $parentName)

No description

static void
parseServices(ContainerBuilder $builder, array $config, $namespace = NULL)

Parses section 'services' from (unexpanded) configuration file.

static void
parseService(ServiceDefinition $definition, $config)

Parses single service from configuration file.

static array
filterArguments(array $args)

Removes ... and replaces entities with Statement.

Details

at line 38
__construct(ContainerBuilder $builder = NULL)

No description

Parameters

ContainerBuilder $builder

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

Add custom configurator extension.

Parameters

$name
CompilerExtension $extension

Return Value

Compiler

at line 61
array getExtensions($type = NULL)

No description

Parameters

$type

Return Value

array

at line 72
ContainerBuilder getContainerBuilder()

No description

Return Value

ContainerBuilder

at line 82
array getConfig()

Returns configuration.

Return Value

array

at line 91
string compile(array $config, $className, $parentName)

No description

Parameters

array $config
$className
$parentName

Return Value

string

at line 101
processParameters()

No description

at line 109
processExtensions()

No description

at line 126
processServices()

No description

at line 138
generateCode($className, $parentName)

No description

Parameters

$className
$parentName

at line 162
static void parseServices(ContainerBuilder $builder, array $config, $namespace = NULL)

Parses section 'services' from (unexpanded) configuration file.

Parameters

ContainerBuilder $builder
array $config
$namespace

Return Value

void

at line 239
static void parseService(ServiceDefinition $definition, $config)

Parses single service from configuration file.

Parameters

ServiceDefinition $definition
$config

Return Value

void

at line 355
static array filterArguments(array $args)

Removes ... and replaces entities with Statement.

Parameters

array $args

Return Value

array