Bez popisu

compile 777B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env php
  2. <?php
  3. /*
  4. * This file is part of PsySH
  5. *
  6. * (c) 2013 Justin Hileman
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. if (!is_file(dirname(__DIR__).'/vendor/autoload.php')) {
  12. throw new RuntimeException('Missing PsySH dev dependencies in ' . dirname(__DIR__).'/vendor/' . ', install with `composer.phar install --dev`.');
  13. }
  14. require dirname(__DIR__) . '/vendor/autoload.php';
  15. if (!class_exists('Symfony\Component\Finder\Finder')) {
  16. throw new RuntimeException('Missing PsySH dev dependencies, install with `composer.phar install --dev`.');
  17. }
  18. use Psy\Compiler;
  19. error_reporting(-1);
  20. ini_set('display_errors', 1);
  21. $compiler = new Compiler();
  22. $compiler->compile();