You are here

public function Compiler::addPass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Compiler/Compiler.php \Symfony\Component\DependencyInjection\Compiler\Compiler::addPass()

Adds a pass to the PassConfig.

Parameters

CompilerPassInterface $pass A compiler pass:

string $type The type of the pass:

File

vendor/symfony/dependency-injection/Compiler/Compiler.php, line 74

Class

Compiler
This class is used to remove circular dependencies between individual passes.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION) {
  $this->passConfig
    ->addPass($pass, $type);
}