You are here

public function Compiler::compile in Service Container 7.2

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

Run the Compiler and process all Passes.

@api

Parameters

ContainerBuilder $container:

File

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

Class

Compiler
This class is used to remove circular dependencies between individual passes.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function compile(ContainerBuilder $container) {
  foreach ($this->passConfig
    ->getPasses() as $pass) {
    $pass
      ->process($container);
  }
}