5 * This file is part of Psy Shell.
7 * (c) 2012-2017 Justin Hileman
9 * For the full copyright and license information, please view the LICENSE
10 * file that was distributed with this source code.
13 if (!is_file(dirname(__DIR__) . '/vendor/autoload.php')) {
14 throw new RuntimeException('Missing PsySH dev dependencies in ' . dirname(__DIR__) . '/vendor/' . ', install with `composer.phar install --dev`.');
17 require dirname(__DIR__) . '/vendor/autoload.php';
19 if (!class_exists('Symfony\Component\Finder\Finder')) {
20 throw new RuntimeException('Missing PsySH dev dependencies, install with `composer.phar install --dev`.');
23 if (!is_file(dirname(__DIR__) . '/build-vendor/autoload.php')) {
24 throw new RuntimeException('Missing phar vendor dependencies, install with bin/build-vendor');
30 ini_set('display_errors', 1);
32 $compiler = new Compiler();
34 if (isset($_SERVER['argv']) && isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] === '--compat') {
35 $compiler->compile('psysh-compat.phar');