diff --git a/src/Config.php b/src/Config.php index 3684315..dce162c 100644 --- a/src/Config.php +++ b/src/Config.php @@ -13,7 +13,7 @@ protected static function loadConfig() public static function inherit($env) { - $file = __DIR__ . '/../../../config/config-' . $env . '.php'; + $file = __DIR__ . '/../../../../config/config-' . $env . '.php'; if (!file_exists($file)) { $file = __DIR__ . '/../config/config-' . $env . '.php'; @@ -22,7 +22,7 @@ public static function inherit($env) if (!file_exists($file)) { throw new \Exception( "The config file '" - . realpath(__DIR__ . '/../../../config/config-' . $env . '.php') + . "config-$env.php'" . 'does not found' ); }