gist/app/bootstrap.php.d/00-main.php
2015-07-20 23:38:31 +02:00

14 lines
256 B
PHP

<?php
use Gist\Application;
$app = Application::getInstance();
$app['root_path'] = __DIR__ . '/../..';
if (php_sapi_name() !== 'cli') {
chdir($app['root_path']);
} else {
set_include_path(get_include_path().PATH_SEPARATOR.$app['root_path']);
}