class MergeExtensionConfigurationPass

Same name in this branch

Ensures certain extensions are always loaded.

@author Kris Wallsmith <kris@symfony.com>

Hierarchy

Expanded class hierarchy of MergeExtensionConfigurationPass

2 files declare their use of MergeExtensionConfigurationPass
Kernel.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php
MergeExtensionConfigurationPassTest.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/DependencyInjection/MergeExtensionConfigurationPassTest.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php, line 22

Namespace

Symfony\Component\HttpKernel\DependencyInjection
View source
class MergeExtensionConfigurationPass extends BaseMergeExtensionConfigurationPass {
  private $extensions;
  public function __construct(array $extensions) {
    $this->extensions = $extensions;
  }
  public function process(ContainerBuilder $container) {
    foreach ($this->extensions as $extension) {
      if (!count($container
        ->getExtensionConfig($extension))) {
        $container
          ->loadFromExtension($extension, array());
      }
    }
    parent::process($container);
  }

}

Members