Adds a pass to the PassConfig.
@api
Parameters
CompilerPassInterface $pass A compiler pass:
string $type The type of the pass:
File
- drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/Compiler.php, line 84
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);
}