From a1e7d3f03d402423e997593d2351ad5e4e2a6da9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 13 Feb 2018 02:38:29 +0000 Subject: [PATCH] Update autoload paths --- bin/generate-filters.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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();