1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00
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']);
}