class Compiler

This class is used to remove circular dependencies between individual passes.

Methods

__construct()

No description

getPassConfig()

Returns the PassConfig.

getServiceReferenceGraph()

Returns the ServiceReferenceGraph.

getLoggingFormatter() deprecated

Returns the logging formatter which can be used by compilation passes.

addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION)

Adds a pass to the PassConfig.

addLogMessage(string $string) deprecated

Adds a log message.

log(CompilerPassInterface $pass, $message)

No description

array
getLog()

Returns the log.

compile(ContainerBuilder $container)

Run the Compiler and process all Passes.

Details

at line line 29
__construct()

at line line 40
PassConfig getPassConfig()

Returns the PassConfig.

Return Value

PassConfig The PassConfig instance

at line line 50
ServiceReferenceGraph getServiceReferenceGraph()

Returns the ServiceReferenceGraph.

Return Value

ServiceReferenceGraph The ServiceReferenceGraph instance

at line line 62
LoggingFormatter getLoggingFormatter() deprecated

deprecated since version 3.3, to be removed in 4.0. Use the ContainerBuilder::log() method instead.

Returns the logging formatter which can be used by compilation passes.

Return Value

LoggingFormatter

at line line 80
addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION)

Adds a pass to the PassConfig.

Parameters

CompilerPassInterface $pass
$type

at line line 105
addLogMessage(string $string) deprecated

deprecated since version 3.3, to be removed in 4.0. Use the ContainerBuilder::log() method instead.

Adds a log message.

Parameters

string $string The log message

at line line 115
log(CompilerPassInterface $pass, $message)

Parameters

CompilerPassInterface $pass
$message

at line line 129
array getLog()

Returns the log.

Return Value

array Log array

at line line 139
compile(ContainerBuilder $container)

Run the Compiler and process all Passes.

Parameters

ContainerBuilder $container