1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

Added HOME Composer autoload path to head of Valet CLI file.

This commit is contained in:
James Furey
2019-04-12 13:55:24 +10:00
parent 1e3e37179b
commit 2e4b165a3b

View File

@@ -6,8 +6,10 @@
*/
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
require __DIR__.'/../vendor/autoload.php';
} else {
} elseif (file_exists(__DIR__.'/../../../autoload.php')) {
require __DIR__.'/../../../autoload.php';
} else {
require getenv('HOME').'/.composer/vendor/autoload.php';
}
use Silly\Application;