Skip to content

Commit

Permalink
Require autoload.php if using composer globally
Browse files Browse the repository at this point in the history
  • Loading branch information
kilrizzy committed Jul 14, 2017
1 parent dfbda2d commit 1e87771
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion homeboy
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env php
<?php

require __DIR__.'/vendor/autoload.php';
if(file_exists(__DIR__.'/vendor/autoload.php')){
require __DIR__.'/vendor/autoload.php';
}else{
//If global package, pull composers global autoloader
require __DIR__.'/../../autoload.php';
}

require 'globals.php';

Expand Down

0 comments on commit 1e87771

Please sign in to comment.