From 73fee52af4950976766add85ad0877e4fd940b9a Mon Sep 17 00:00:00 2001 From: Katherine Bailey <katherine@katbailey.net> Date: Mon, 30 Jul 2012 17:36:32 -0700 Subject: [PATCH] No need to boot the kernel explicitly as it can now get booted just when it's handling the request --- index.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 15ce17516b0c..a793cc8659e3 100644 --- a/index.php +++ b/index.php @@ -18,23 +18,19 @@ * Root directory of Drupal installation. */ define('DRUPAL_ROOT', getcwd()); -// Bootstrap the lowest level of what we need. -require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc'; -drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION); - -// Create a request object from the HTTPFoundation. -$request = Request::createFromGlobals(); // Bootstrap all of Drupal's subsystems, but do not initialize anything that // depends on the fully resolved Drupal path, because path resolution happens // during the REQUEST event of the kernel. // @see Drupal\Core\EventSubscriber\PathSubscriber; // @see Drupal\Core\EventSubscriber\LegacyRequestSubscriber; +require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_CODE); $kernel = new DrupalKernel('prod', FALSE); -$kernel->boot(); +// Create a request object from the HTTPFoundation. +$request = Request::createFromGlobals(); $response = $kernel->handle($request)->prepare($request)->send(); $kernel->terminate($request, $response); -- GitLab