diff --git a/bin/console b/bin/console index de30321e0..33085d36e 100755 --- a/bin/console +++ b/bin/console @@ -15,11 +15,13 @@ ob_get_clean(); -if (file_exists($a = dirname(__DIR__) . '/vendor/autoload.php')) { +if (file_exists($a = getcwd() . '/vendor/autoload.php')) { + include $a; +} elseif (file_exists($a = __DIR__ . '/../vendor/autoload.php')) { include $a; } elseif (file_exists($a = __DIR__ . '/../../../../vendor/autoload.php')) { include $a; -} elseif (file_exists($a = __DIR__ . '/../vendor/autoload.php')) { +} elseif (file_exists($a = __DIR__ . '/../autoload.php')) { include $a; } else { fwrite(STDERR, 'Cannot locate autoloader; please run "composer install"' . PHP_EOL);