diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 08be7ae..d96be2b 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -2014,10 +2014,12 @@ function _drupal_bootstrap_configuration() { */ function _drupal_bootstrap_kernel() { // Normally, index.php puts a container in drupal_container() by creating a - // kernel. If there is no container yet, create one. - if (!drupal_container()) { + // kernel. If there is no container yet, create one and set the request. + if (!Drupal::getContainer()) { $kernel = new DrupalKernel('prod', drupal_classloader()); $kernel->boot(); + $request = Request::createFromGlobals(); + Drupal::getContainer()->set('request', $request); } }