You are here

public function MergeExtensionConfigurationPass::process in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php \Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass::process()
  2. 8 vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php \Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass::process()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php \Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass::process()

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

Parameters

ContainerBuilder $container:

Overrides MergeExtensionConfigurationPass::process

File

vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php, line 31

Class

MergeExtensionConfigurationPass
Ensures certain extensions are always loaded.

Namespace

Symfony\Component\HttpKernel\DependencyInjection

Code

public function process(ContainerBuilder $container) {
  foreach ($this->extensions as $extension) {
    if (!count($container
      ->getExtensionConfig($extension))) {
      $container
        ->loadFromExtension($extension, array());
    }
  }
  parent::process($container);
}