Allow Drupal 8 vendor folder outside webroot
authorWannes De Roy <wannes.deroy@calibrate.be>
Tue, 17 Jul 2018 19:59:12 +0000 (21:59 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Jul 2018 19:59:12 +0000 (21:59 +0200)
CRM/Utils/System/Drupal8.php

index 499a1431a87f5d90afd2cd19ca27c911869e9ac9..1413f2bd7b9bdcacbb98779cd8d15bd8525b0ff2 100644 (file)
@@ -422,7 +422,7 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
     chdir($root);
 
     // Create a mock $request object
-    $autoloader = require_once $root . '/vendor/autoload.php';
+    $autoloader = require_once $root . '/autoload.php';
     if ($autoloader === TRUE) {
       $autoloader = ComposerAutoloaderInitDrupal8::getLoader();
     }