class Compiler

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

Methods

__construct()

No description

getPassConfig()

Returns the PassConfig.

ServiceReferenceGraph
getServiceReferenceGraph()

Returns the ServiceReferenceGraph.

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

Adds a pass to the PassConfig.

log(CompilerPassInterface $pass, string $message)

No description

array
getLog()

Returns the log.

compile(ContainerBuilder $container)

Run the Compiler and process all Passes.

Details

at line line 28
__construct()

at line line 39
PassConfig getPassConfig()

Returns the PassConfig.

Return Value

PassConfig The PassConfig instance

at line line 49
ServiceReferenceGraph getServiceReferenceGraph()

Returns the ServiceReferenceGraph.

Return Value

ServiceReferenceGraph The ServiceReferenceGraph instance

at line line 61
addPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority)

Adds a pass to the PassConfig.

Parameters

CompilerPassInterface $pass A compiler pass
string $type The type of the pass
int $priority Used to sort the passes

at line line 69
log(CompilerPassInterface $pass, string $message)

Parameters

CompilerPassInterface $pass
string $message

at line line 83
array getLog()

Returns the log.

Return Value

array Log array

at line line 91
compile(ContainerBuilder $container)

Run the Compiler and process all Passes.

Parameters

ContainerBuilder $container