diff --git a/bin/generate-filters.php b/bin/generate-filters.php index 00f7171..74a21d9 100644 --- a/bin/generate-filters.php +++ b/bin/generate-filters.php @@ -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();