Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 2054fab

Browse files
committed
Autoload for root folders
1 parent eb27ac2 commit 2054fab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/autoload.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
/* 'composer install' validation */
2929
if (file_exists($vendorAutoload)) {
3030
$composerAutoloader = include $vendorAutoload;
31+
} else if (file_exists("{$vendorDir}/autoload.php")) {
32+
$vendorAutoload = "{$vendorDir}/autoload.php";
33+
$composerAutoloader = include $vendorAutoload;
3134
} else {
3235
throw new \Exception(
3336
'Vendor autoload is not found. Please run \'composer install\' under application root directory.'

0 commit comments

Comments
 (0)