Compiler
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.
Details
at line line 31
__construct()
Constructor.
at line line 43
PassConfig
getPassConfig()
Returns the PassConfig.
at line line 53
ServiceReferenceGraph
getServiceReferenceGraph()
Returns the ServiceReferenceGraph.
at line line 63
LoggingFormatter
getLoggingFormatter()
Returns the logging formatter which can be used by compilation passes.
at line line 74
addPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION)
Adds a pass to the PassConfig.
at line line 84
addLogMessage(string $string)
Adds a log message.
at line line 94
array
getLog()
Returns the log.
at line line 104
compile(ContainerBuilder $container)
Run the Compiler and process all Passes.