Update autoload paths

This commit is contained in:
Oliver Davies 2018-02-13 02:38:29 +00:00
parent 215dd5525e
commit a1e7d3f03d

View file

@ -4,7 +4,12 @@ use Opdavies\GmailFilterBuilder\Console\Command\GenerateCommand;
use Opdavies\GmailFilterBuilder\Container\Container;
use Symfony\Component\Console\Application;
require_once __DIR__.'/../vendor/autoload.php';
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
require_once __DIR__.'/../vendor/autoload.php';
}
elseif (file_exists(__DIR__.'/../../../autoload.php')) {
require_once __DIR__.'/../../../autoload.php';
}
$container = new Container();