Copied!

Compiler Pass Configuration.

This class has a default configuration embedded.

CloneableInstantiable
Constants
public Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_AFTER_REMOVING = 'afterRemoving'
public Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_BEFORE_OPTIMIZATION = 'beforeOptimization'
public Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_BEFORE_REMOVING = 'beforeRemoving'
public Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_OPTIMIZE = 'optimization'
public Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_REMOVE = 'removing'
Methods
public __construct()
public addPass(Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface $pass, string $type = 'beforeOptimization'self::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
 

Adds a pass.

  • throws InvalidArgumentException when a pass type doesn't exist
public getAfterRemovingPasses() : array
 

Gets all passes for the AfterRemoving pass.

public getBeforeOptimizationPasses() : array
 

Gets all passes for the BeforeOptimization pass.

public getBeforeRemovingPasses() : array
 

Gets all passes for the BeforeRemoving pass.

public getMergePass() : Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
 

Gets the Merge pass.

public getOptimizationPasses() : array
 

Gets all passes for the Optimization pass.

public getPasses() : array
 

Returns all passes in order to be processed.

public getRemovingPasses() : array
 

Gets all passes for the Removing 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 setMergePass(Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface $pass)
public setOptimizationPasses(array $passes)
 

Sets the Optimization passes.

public setRemovingPasses(array $passes)
Properties
private array $afterRemovingPasses
private array $beforeOptimizationPasses
private array $beforeRemovingPasses
private Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass $mergePass
private array $optimizationPasses
private array $removingPasses
Methods
private sortPasses(array $passes) : array
 

Sort passes by priority.

© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration