class Compiler
This class is used to remove circular dependencies between individual passes.
__construct() | ||
PassConfig | getPassConfig() Returns the PassConfig. | |
ServiceReferenceGraph | getServiceReferenceGraph() Returns the ServiceReferenceGraph. | |
addPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0) Adds a pass to the PassConfig. | ||
log(CompilerPassInterface $pass, string $message) | ||
array | getLog() Returns the log. | |
compile(ContainerBuilder $container) Run the Compiler and process all Passes. |
Returns the PassConfig.
PassConfig | The PassConfig instance |
Returns the ServiceReferenceGraph.
ServiceReferenceGraph | The ServiceReferenceGraph instance |
Adds a pass to the PassConfig.
CompilerPassInterface | $pass | A compiler pass |
string | $type | The type of the pass |
int | $priority | Used to sort the passes |
CompilerPassInterface | $pass | |
string | $message |
Returns the log.
array | Log array |
Run the Compiler and process all Passes.
ContainerBuilder | $container |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler/Compiler.html