blob: fd766bc07ce6766eed48fa88f8ba9734f704c270 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/env php
<?php
/**
* SQL linter (syntax checker) written in PHP
*
* PHP version 5
*
* @category Tools
* @package PHP-SQLlint
* @author Christian Weiske <cweiske@cweiske.de>
* @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3
* @link http://cweiske.de/php-sqllint.htm
*/
namespace phpsqllint;
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
//local git checkout
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();
}
$cli = new Cli();
$cli->run();
?>
|