diff --git a/src/Drupal/Driver/Cores/Drupal8.php b/src/Drupal/Driver/Cores/Drupal8.php index 400ad615..bad6ca71 100644 --- a/src/Drupal/Driver/Cores/Drupal8.php +++ b/src/Drupal/Driver/Cores/Drupal8.php @@ -27,12 +27,12 @@ public function bootstrap() { // Bootstrap Drupal. chdir(DRUPAL_ROOT); - require_once DRUPAL_ROOT . '/core/vendor/autoload.php'; + $autoloader = require DRUPAL_ROOT . '/autoload.php'; require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc'; $this->validateDrupalSite(); $request = Request::createFromGlobals(); - $kernel = DrupalKernel::createFromRequest($request, \ComposerAutoloaderInitDrupal8::getLoader(), 'prod'); + $kernel = DrupalKernel::createFromRequest($request, $autoloader, 'prod'); $kernel->boot(); $kernel->prepareLegacyRequest($request); diff --git a/src/Drupal/Driver/DrupalDriver.php b/src/Drupal/Driver/DrupalDriver.php index 190d8abf..6639afe9 100644 --- a/src/Drupal/Driver/DrupalDriver.php +++ b/src/Drupal/Driver/DrupalDriver.php @@ -161,7 +161,7 @@ function getDrupalVersion() { // Drupal 7. '/includes/bootstrap.inc', // Drupal 8. - '/core/vendor/autoload.php', + '/autoload.php', '/core/includes/bootstrap.inc', );