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) : void
 

Adds a pass.

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

Gets all passes for the AfterRemoving pass.

  • return \CompilerPassInterface[]
public getBeforeOptimizationPasses() : array
 

Gets all passes for the BeforeOptimization pass.

  • return \CompilerPassInterface[]
public getBeforeRemovingPasses() : array
 

Gets all passes for the BeforeRemoving pass.

  • return \CompilerPassInterface[]
public getMergePass() : Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
 

Gets the Merge pass.

public getOptimizationPasses() : array
 

Gets all passes for the Optimization pass.

  • return \CompilerPassInterface[]
public getPasses() : array
 

Returns all passes in order to be processed.

  • return \CompilerPassInterface[]
public getRemovingPasses() : array
 

Gets all passes for the Removing pass.

  • return \CompilerPassInterface[]
public setAfterRemovingPasses(array $passes) : void
 

Sets the AfterRemoving passes.

  • param \CompilerPassInterface[] $passes
public setBeforeOptimizationPasses(array $passes) : void
 

Sets the BeforeOptimization passes.

  • param \CompilerPassInterface[] $passes
public setBeforeRemovingPasses(array $passes) : void
 

Sets the BeforeRemoving passes.

  • param \CompilerPassInterface[] $passes
public setMergePass(Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface $pass) : void
public setOptimizationPasses(array $passes) : void
 

Sets the Optimization passes.

  • param \CompilerPassInterface[] $passes
public setRemovingPasses(array $passes) : void
 

Sets the Removing passes.

  • param \CompilerPassInterface[] $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.

  • param array $passes CompilerPassInterface instances with their priority as key
  • return \CompilerPassInterface[]
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration