issue with cli
This commit is contained in:
parent
a6a8f94cb3
commit
2395b78db7
|
@ -6,4 +6,8 @@ $app = Application::getInstance();
|
||||||
|
|
||||||
$app['root_path'] = __DIR__ . '/../..';
|
$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']);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue