class PassConfig
Compiler Pass Configuration.
This class has a default configuration embedded.
TYPE_AFTER_REMOVING | |
TYPE_BEFORE_OPTIMIZATION | |
TYPE_BEFORE_REMOVING | |
TYPE_OPTIMIZE | |
TYPE_REMOVE |
__construct() | ||
CompilerPassInterface[] | getPasses() Returns all passes in order to be processed. | |
addPass(CompilerPassInterface $pass, string $type = self::TYPE_BEFORE_OPTIMIZATION, int $priority = 0) Adds a pass. | ||
CompilerPassInterface[] | getAfterRemovingPasses() Gets all passes for the AfterRemoving pass. | |
CompilerPassInterface[] | getBeforeOptimizationPasses() Gets all passes for the BeforeOptimization pass. | |
CompilerPassInterface[] | getBeforeRemovingPasses() Gets all passes for the BeforeRemoving pass. | |
CompilerPassInterface[] | getOptimizationPasses() Gets all passes for the Optimization pass. | |
CompilerPassInterface[] | getRemovingPasses() Gets all passes for the Removing pass. | |
CompilerPassInterface | getMergePass() Gets the Merge pass. | |
setMergePass(CompilerPassInterface $pass) | ||
setAfterRemovingPasses(array $passes) Sets the AfterRemoving passes. | ||
setBeforeOptimizationPasses(array $passes) Sets the BeforeOptimization passes. | ||
setBeforeRemovingPasses(array $passes) Sets the BeforeRemoving passes. | ||
setOptimizationPasses(array $passes) Sets the Optimization passes. | ||
setRemovingPasses(array $passes) Sets the Removing passes. |
Returns all passes in order to be processed.
CompilerPassInterface[] |
Adds a pass.
CompilerPassInterface | $pass | A Compiler pass |
string | $type | The pass type |
int | $priority | Used to sort the passes |
InvalidArgumentException | when a pass type doesn't exist |
Gets all passes for the AfterRemoving pass.
CompilerPassInterface[] |
Gets all passes for the BeforeOptimization pass.
CompilerPassInterface[] |
Gets all passes for the BeforeRemoving pass.
CompilerPassInterface[] |
Gets all passes for the Optimization pass.
CompilerPassInterface[] |
Gets all passes for the Removing pass.
CompilerPassInterface[] |
Gets the Merge pass.
CompilerPassInterface |
CompilerPassInterface | $pass |
Sets the AfterRemoving passes.
array | $passes |
Sets the BeforeOptimization passes.
array | $passes |
Sets the BeforeRemoving passes.
array | $passes |
Sets the Optimization passes.
array | $passes |
Sets the Removing passes.
array | $passes |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler/PassConfig.html