diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index 6495229..09457af 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -726,10 +726,11 @@ protected function initializeContainer($rebuild = FALSE) { $this->attachSynthetic($container); $this->container = $container; + \Drupal::setContainer($this->container); + if ($session_manager_started) { $this->container->get('session_manager')->start(); } - \Drupal::setContainer($this->container); // If needs dumping flag was set, dump the container. if ($this->containerNeedsDumping && !$this->dumpDrupalContainer($this->container, static::CONTAINER_BASE_CLASS)) {