class Compiler

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

Methods

__construct()

Constructor.

getPassConfig()

Returns the PassConfig.

getServiceReferenceGraph()

Returns the ServiceReferenceGraph.

getLoggingFormatter()

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

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

Adds a pass to the PassConfig.

addLogMessage(string $string)

Adds a log message.

array
getLog()

Returns the log.

compile(ContainerBuilder $container)

Run the Compiler and process all Passes.

Details

at line line 31
__construct()

Constructor.

at line line 43
PassConfig getPassConfig()

Returns the PassConfig.

Return Value

PassConfig The PassConfig instance

at line line 53
ServiceReferenceGraph getServiceReferenceGraph()

Returns the ServiceReferenceGraph.

Return Value

ServiceReferenceGraph The ServiceReferenceGraph instance

at line line 63
LoggingFormatter getLoggingFormatter()

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

Return Value

LoggingFormatter

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

Adds a pass to the PassConfig.

Parameters

CompilerPassInterface $pass A compiler pass
string $type The type of the pass

at line line 84
addLogMessage(string $string)

Adds a log message.

Parameters

string $string The log message

at line line 94
array getLog()

Returns the log.

Return Value

array Log array

at line line 104
compile(ContainerBuilder $container)

Run the Compiler and process all Passes.

Parameters

ContainerBuilder $container