issue with cli

This commit is contained in:
Simon Vieille 2015-07-20 23:38:31 +02:00
parent a6a8f94cb3
commit 2395b78db7

View file

@ -6,4 +6,8 @@ $app = Application::getInstance();
$app['root_path'] = __DIR__ . '/../..';
chdir($app['root_path']);
if (php_sapi_name() !== 'cli') {
chdir($app['root_path']);
} else {
set_include_path(get_include_path().PATH_SEPARATOR.$app['root_path']);
}