Yaffs site version 1.1
[yaffs-website] / vendor / drush / drush / lib / Drush / Drupal / DrupalKernel.php
index 73456ed46a0eb3e22bbc7651f1a7118d8301f4c2..39fa15c0f953505c1449637eb07060b504b40b07 100644 (file)
@@ -43,4 +43,21 @@ class DrupalKernel extends DrupalDrupalKernel {
     }
     return $container;
   }
+  /**
+   * Initializes the service container.
+   *
+   * @return \Symfony\Component\DependencyInjection\ContainerInterface
+   */
+  protected function initializeContainer() {
+    if (empty($this->moduleList) && !$this->containerNeedsRebuild) {
+      $container_definition = $this->getCachedContainerDefinition();
+      foreach ($this->serviceModifiers as $serviceModifier) {
+        if (!$serviceModifier->check($container_definition)) {
+          $this->invalidateContainer();
+          break;
+        }
+      }
+    }
+    return parent::initializeContainer();
+  }
 }