You are here

public function RepeatedPass::process in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php \Symfony\Component\DependencyInjection\Compiler\RepeatedPass::process()

Process the repeatable passes that run more than once.

Parameters

ContainerBuilder $container:

Overrides CompilerPassInterface::process

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php, line 59

Class

RepeatedPass
A pass that might be run repeatedly.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function process(ContainerBuilder $container) {
  $this->repeat = false;
  foreach ($this->passes as $pass) {
    $pass
      ->process($container);
  }
  if ($this->repeat) {
    $this
      ->process($container);
  }
}