Symfony\Component\DependencyInjection\ContainerBuilder::addCompilerPass
Adds a compiler pass.
Signature
public function addCompilerPass(CompilerPassInterface
$pass,
[string
$type = PassConfig::TYPE_BEFORE_OPTIMIZATION] )
Parameters
$pass
— Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface- A compiler pass
$type
— string- The type of compiler pass
Returns
- ContainerBuilder
- The current instance