|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | + +--------------------------------------------------------------------------+ |
| 5 | + | Zephir Parser. | |
| 6 | + +--------------------------------------------------------------------------+ |
| 7 | + | Copyright (c) 2013-2017 Zephir Team and contributors | |
| 8 | + +--------------------------------------------------------------------------+ |
| 9 | + | This source file is subject the MIT license, that is bundled with | |
| 10 | + | this package in the file LICENSE, and is available through the | |
| 11 | + | world-wide-web at the following url: | |
| 12 | + | http://zephir-lang.com/license.html | |
| 13 | + | | |
| 14 | + | If you did not receive a copy of the MIT license and are unable | |
| 15 | + | to obtain it through the world-wide-web, please send a note to | |
| 16 | + | license@zephir-lang.com so we can mail you a copy immediately. | |
| 17 | + +--------------------------------------------------------------------------+ |
| 18 | +*/ |
| 19 | + |
| 20 | +// turn on all errors |
| 21 | +error_reporting(-1); |
| 22 | + |
| 23 | +ini_set('date.timezone', 'UTC'); |
| 24 | +ini_set('display_errors', 'on'); |
| 25 | +ini_set('display_startup_errors', 'on'); |
| 26 | + |
| 27 | +$vendorPath = dirname(dirname(__FILE__)) . '/vendor'; |
| 28 | + |
| 29 | +if (!is_file($vendorPath . '/autoload.php')) { |
| 30 | + throw new \RuntimeException( |
| 31 | + 'Unable to locate autoloader. Run `composer install` from the project root directory.' |
| 32 | + ); |
| 33 | +} |
| 34 | + |
| 35 | +require $vendorPath . '/autoload.php'; |
| 36 | + |
| 37 | +define('ZEPHIR_DATA', __DIR__ . DIRECTORY_SEPARATOR . 'Data' . DIRECTORY_SEPARATOR); |
| 38 | +define('OUTPUT_DATA', __DIR__ . DIRECTORY_SEPARATOR . 'Output' . DIRECTORY_SEPARATOR); |
0 commit comments