Skip to content

Commit

Permalink
Merge pull request #30 from webflo/d8-autoload
Browse files Browse the repository at this point in the history
Use autoload.php in favour of core/vendor/autoload.php

Signed-off-by: Jonathan Hedstrom <[email protected]>
  • Loading branch information
jhedstrom committed May 29, 2015
1 parent b32ba2c commit c5f6715
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Drupal/Driver/Cores/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/Drupal/Driver/DrupalDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function getDrupalVersion() {
// Drupal 7.
'/includes/bootstrap.inc',
// Drupal 8.
'/core/vendor/autoload.php',
'/autoload.php',
'/core/includes/bootstrap.inc',
);

Expand Down

0 comments on commit c5f6715

Please sign in to comment.