public function Compiler::addPass in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Compiler/Compiler.php \Symfony\Component\DependencyInjection\Compiler\Compiler::addPass()
Adds a pass to the PassConfig.
@api
Parameters
CompilerPassInterface $pass A compiler pass:
string $type The type of the pass:
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Compiler/ Compiler.php, line 82
Class
- Compiler
- This class is used to remove circular dependencies between individual passes.
Namespace
Symfony\Component\DependencyInjection\CompilerCode
public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION) {
$this->passConfig
->addPass($pass, $type);
}