highlight-query 666 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env php
  2. <?php
  3. $files = array(
  4. __DIR__ . "/../vendor/autoload.php",
  5. __DIR__ . "/../../vendor/autoload.php",
  6. __DIR__ . "/../../../autoload.php",
  7. "vendor/autoload.php"
  8. );
  9. $found = false;
  10. foreach ($files as $file) {
  11. if (file_exists($file)) {
  12. require_once $file;
  13. $found = true;
  14. break;
  15. }
  16. }
  17. if (!$found) {
  18. die(
  19. "You need to set up the project dependencies using the following commands:" . PHP_EOL .
  20. "curl -sS https://getcomposer.org/installer | php" . PHP_EOL .
  21. "php composer.phar install" . PHP_EOL
  22. );
  23. }
  24. $cli = new PhpMyAdmin\SqlParser\Utils\CLI();
  25. exit($cli->runHighlight());