File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ public function loadSiteAutoloader($root)
5959 }
6060
6161 $ this ->siteLoader = require $ autloadFilePath ;
62+ if ($ this ->siteLoader === false ) {
63+ // Nothing more to do. See https://github.com/drush-ops/drush/issues/3741.
64+ return $ this ->loader ;
65+ }
6266 if ($ this ->siteLoader === true ) {
6367 // The autoloader was already required. Assume that Drush and Drupal share an autoloader per
6468 // "Point autoload.php to the proper vendor directory" - https://www.drupal.org/node/2404989
Original file line number Diff line number Diff line change 1111 * @see core/modules/statistics/statistics.php
1212 */
1313
14- return require __DIR__ . '/../vendor/autoload.php ' ;
14+ // Use include instead of return because See https://github.com/drush-ops/drush/issues/3741
15+ return include __DIR__ . '/../vendor/autoload.php ' ;
You can’t perform that action at this time.
0 commit comments