diff --git a/src/Utils/Configuration/Configuration.php b/src/Utils/Configuration/Configuration.php index 496939d..4e27876 100644 --- a/src/Utils/Configuration/Configuration.php +++ b/src/Utils/Configuration/Configuration.php @@ -71,7 +71,7 @@ class Configuration { public static function getConfigFilePath() { if (null === self::$customConfigFilePath) { - $envfile = apache_getenv('APPLICATION_ENV') === 'development' ? 'local' : 'global'; + $envfile = (php_sapi_name() === 'cli' || apache_getenv('APPLICATION_ENV') === 'development') ? 'local' : 'global'; self::$customConfigFilePath = realpath(dirname(__FILE__) . "/../../../../../../config/configuration.$envfile.php"); } return self::$customConfigFilePath;