Compiler\PassConfig (Component\DependencyInjection)
Symfony\Component\DependencyInjection\Compiler\PassConfig
class PassConfig
Compiler Pass Configuration.
This class has a default configuration embedded.
Constants
TYPE_AFTER_REMOVING | |
TYPE_BEFORE_OPTIMIZATION | |
TYPE_BEFORE_REMOVING | |
TYPE_OPTIMIZE | |
TYPE_REMOVE |
Methods
__construct() Constructor. | ||
array | getPasses() Returns all passes in order to be processed. | |
addPass(CompilerPassInterface $pass, string $type = self::TYPE_BEFORE_OPTIMIZATION) Adds a pass. | ||
array | getAfterRemovingPasses() Gets all passes for the AfterRemoving pass. | |
array | getBeforeOptimizationPasses() Gets all passes for the BeforeOptimization pass. | |
array | getBeforeRemovingPasses() Gets all passes for the BeforeRemoving pass. | |
array | getOptimizationPasses() Gets all passes for the Optimization pass. | |
array | getRemovingPasses() Gets all passes for the Removing pass. | |
array | getMergePass() Gets all passes for the Merge pass. | |
setMergePass(CompilerPassInterface $pass) Sets the Merge 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. |
Details
public __construct()
Constructor.
public array getPasses()
Returns all passes in order to be processed.
public addPass(CompilerPassInterface $pass, string $type = self::TYPE_BEFORE_OPTIMIZATION)
Adds a pass.
public array getAfterRemovingPasses()
Gets all passes for the AfterRemoving pass.
public array getBeforeOptimizationPasses()
Gets all passes for the BeforeOptimization pass.
public array getBeforeRemovingPasses()
Gets all passes for the BeforeRemoving pass.
public array getOptimizationPasses()
Gets all passes for the Optimization pass.
public array getRemovingPasses()
Gets all passes for the Removing pass.
public array getMergePass()
Gets all passes for the Merge pass.
public setMergePass(CompilerPassInterface $pass)
Sets the Merge Pass.
public setAfterRemovingPasses(array $passes)
Sets the AfterRemoving passes.
public setBeforeOptimizationPasses(array $passes)
Sets the BeforeOptimization passes.
public setBeforeRemovingPasses(array $passes)
Sets the BeforeRemoving passes.
public setOptimizationPasses(array $passes)
Sets the Optimization passes.
public setRemovingPasses(array $passes)
Sets the Removing passes.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/Compiler/PassConfig.html