diff --git a/core/lib/Drupal/Core/Console/Bootstrap.php b/core/lib/Drupal/Core/Console/Bootstrap.php index e2d43b1..9dcdfac 100644 --- a/core/lib/Drupal/Core/Console/Bootstrap.php +++ b/core/lib/Drupal/Core/Console/Bootstrap.php @@ -24,10 +24,10 @@ class Bootstrap Implements BootstrapInterface { public function bootstrap(Command $command, InputInterface $input, OutputInterface $output, Request $request = NULL) { $env = $input->getOption('environment'); try { - require_once __DIR__ . '/../../../includes/bootstrap.inc'; + require_once __DIR__ . '/../../../../includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION); - $kernel = new DrupalKernel($env, \drupal_classloader(), TRUE); + $kernel = new DrupalKernel($env ?: 'prod', \drupal_classloader(), TRUE, FALSE); $kernel->boot(); if (!$request) {