diff --git a/app/bootstrap.php.d/00-main.php b/app/bootstrap.php.d/00-main.php index 918614b..bdade45 100644 --- a/app/bootstrap.php.d/00-main.php +++ b/app/bootstrap.php.d/00-main.php @@ -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']); +}