2015-05-05 20:33:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Gist\Application;
|
|
|
|
|
|
|
|
$app = Application::getInstance();
|
|
|
|
|
|
|
|
$app['root_path'] = __DIR__ . '/../..';
|
2015-05-06 14:11:00 +02:00
|
|
|
|
2015-07-20 23:38:31 +02:00
|
|
|
if (php_sapi_name() !== 'cli') {
|
|
|
|
chdir($app['root_path']);
|
|
|
|
} else {
|
|
|
|
set_include_path(get_include_path().PATH_SEPARATOR.$app['root_path']);
|
|
|
|
}
|