git.cweiske.de
/
php-sqllint.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try absolute autoloader path first
[php-sqllint.git]
/
bin
/
php-sqllint
diff --git
a/bin/php-sqllint
b/bin/php-sqllint
index f746813650c7a37e9ad99896fc834b19b7220dbd..fd766bc07ce6766eed48fa88f8ba9734f704c270 100755
(executable)
--- a/
bin/php-sqllint
+++ b/
bin/php-sqllint
@@
-14,8
+14,13
@@
namespace phpsqllint;
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
namespace phpsqllint;
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
+ //local git checkout
include_once __DIR__ . '/../vendor/autoload.php';
include_once __DIR__ . '/../vendor/autoload.php';
+} else if (file_exists('vendor/autoload.php')) {
+ //dependency composer installation
+ include_once 'vendor/autoload.php';
}
}
+
if (file_exists(__DIR__ . '/../src/phpsqllint/Autoloader.php')) {
include_once __DIR__ . '/../src/phpsqllint/Autoloader.php';
Autoloader::register();
if (file_exists(__DIR__ . '/../src/phpsqllint/Autoloader.php')) {
include_once __DIR__ . '/../src/phpsqllint/Autoloader.php';
Autoloader::register();