Skip to content

Commit

Permalink
Merge pull request #767 from furey/feature/home-autoloader
Browse files Browse the repository at this point in the history
HOME Autoloader
  • Loading branch information
mattstauffer authored Apr 12, 2019
2 parents dc0e14a + 2e4b165 commit 6f70c9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f70c9a

Please sign in to comment.