Skip to content

Commit

Permalink
Merge 05325d6 into d9f6d3e
Browse files Browse the repository at this point in the history
  • Loading branch information
yus-ham committed May 21, 2020
2 parents d9f6d3e + 05325d6 commit ef84fdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public static function load()
*/
private static function getClassLoader()
{
$autoload = ($_ENV['COMPOSER_VENDOR_DIR'] ?? getenv('COMPOSER_VENDOR_DIR')) . '/autoload.php';

if (file_exists($autoload)) {
return include $autoload;
}

if (file_exists(__DIR__ . '/../../../autoload.php')) {
return include __DIR__ . '/../../../autoload.php';
}
Expand Down

0 comments on commit ef84fdb

Please sign in to comment.