public function RepeatedPass::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Compiler/RepeatedPass.php \Symfony\Component\DependencyInjection\Compiler\RepeatedPass::__construct()
Constructor.
Parameters
RepeatablePassInterface[] $passes An array of RepeatablePassInterface objects:
Throws
InvalidArgumentException when the passes don't implement RepeatablePassInterface
File
- vendor/
symfony/ dependency-injection/ Compiler/ RepeatedPass.php, line 41
Class
- RepeatedPass
- A pass that might be run repeatedly.
Namespace
Symfony\Component\DependencyInjection\CompilerCode
public function __construct(array $passes) {
foreach ($passes as $pass) {
if (!$pass instanceof RepeatablePassInterface) {
throw new InvalidArgumentException('$passes must be an array of RepeatablePassInterface.');
}
$pass
->setRepeatedPass($this);
}
$this->passes = $passes;
}