Compiler\Compiler (Component\DependencyInjection)
Symfony\Component\DependencyInjection\Compiler\Compiler
class Compiler
This class is used to remove circular dependencies between individual passes.
Methods
__construct() Constructor. | ||
PassConfig | getPassConfig() Returns the PassConfig. | |
ServiceReferenceGraph | getServiceReferenceGraph() Returns the ServiceReferenceGraph. | |
LoggingFormatter | 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
public __construct()
Constructor.
public PassConfig getPassConfig()
Returns the PassConfig.
public ServiceReferenceGraph getServiceReferenceGraph()
Returns the ServiceReferenceGraph.
public LoggingFormatter getLoggingFormatter()
Returns the logging formatter which can be used by compilation passes.
public addPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION)
Adds a pass to the PassConfig.
public addLogMessage(string $string)
Adds a log message.
public array getLog()
Returns the log.
public compile(ContainerBuilder $container)
Run the Compiler and process all Passes.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/Compiler/Compiler.html