Symfony\Component\DependencyInjection\Compiler\PassConfig::addPass
Adds a pass.
Signature
public function addPass(CompilerPassInterface
$pass,
[string
$type = self::TYPE_BEFORE_OPTIMIZATION] )
Parameters
$pass
— Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface- A Compiler pass
$type
— string- The pass type
Errors/Exceptions
-
InvalidArgumentException
- when a pass type doesn't exist