You are here

public function ExtensionCompilerPass::process in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Compiler/ExtensionCompilerPass.php \Symfony\Component\DependencyInjection\Compiler\ExtensionCompilerPass::process()

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container:

Overrides CompilerPassInterface::process

File

vendor/symfony/dependency-injection/Compiler/ExtensionCompilerPass.php, line 27

Class

ExtensionCompilerPass
A pass to automatically process extensions if they implement CompilerPassInterface.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function process(ContainerBuilder $container) {
  foreach ($container
    ->getExtensions() as $extension) {
    if (!$extension instanceof CompilerPassInterface) {
      continue;
    }
    $extension
      ->process($container);
  }
}