X-Git-Url: https://git.cweiske.de/php-sqllint.git/blobdiff_plain/c1ae7d6e107109045f8beb099dcc3846871f5c16..9ab7a8507c0accdc32625e4113dcc50320242825:/bin/php-sqllint diff --git a/bin/php-sqllint b/bin/php-sqllint index f746813..8075c9e 100755 --- a/bin/php-sqllint +++ b/bin/php-sqllint @@ -13,9 +13,14 @@ */ namespace phpsqllint; -if (file_exists(__DIR__ . '/../vendor/autoload.php')) { +if (file_exists('vendor/autoload.php')) { + //dependency composer installation + include_once 'vendor/autoload.php'; +} else if (file_exists(__DIR__ . '/../vendor/autoload.php')) { + //local git checkout include_once __DIR__ . '/../vendor/autoload.php'; } + if (file_exists(__DIR__ . '/../src/phpsqllint/Autoloader.php')) { include_once __DIR__ . '/../src/phpsqllint/Autoloader.php'; Autoloader::register();