public function MergeExtensionConfigurationPass::process

Same name in this branch
  1. 8.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php \Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass::process()
  2. 8.x drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php \Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass::process()

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

@api

Parameters

ContainerBuilder $container:

Overrides MergeExtensionConfigurationPass::process

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/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);
}