function ContainerBuilder::addCompilerPass
Adds a compiler pass.
Parameters
string $type The type of compiler pass:
int $priority Used to sort the passes:
Return value
$this
1 method overrides ContainerBuilder::addCompilerPass()
- MergeExtensionConfigurationContainerBuilder::addCompilerPass in vendor/
symfony/ dependency-injection/ Compiler/ MergeExtensionConfigurationPass.php - Adds a compiler pass.
File
-
vendor/
symfony/ dependency-injection/ ContainerBuilder.php, line 497
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
public function addCompilerPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0) : static {
$this->getCompiler()
->addPass($pass, $type, $priority);
$this->addObjectResource($pass);
return $this;
}