X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Flib%2FDrush%2FDrupal%2FDrupalKernel.php;fp=vendor%2Fdrush%2Fdrush%2Flib%2FDrush%2FDrupal%2FDrupalKernel.php;h=39fa15c0f953505c1449637eb07060b504b40b07;hp=73456ed46a0eb3e22bbc7651f1a7118d8301f4c2;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/drush/drush/lib/Drush/Drupal/DrupalKernel.php b/vendor/drush/drush/lib/Drush/Drupal/DrupalKernel.php index 73456ed46..39fa15c0f 100644 --- a/vendor/drush/drush/lib/Drush/Drupal/DrupalKernel.php +++ b/vendor/drush/drush/lib/Drush/Drupal/DrupalKernel.php @@ -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(); + } }