From b251867f56c6854e5daccd858b209709c8870b0f Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Wed, 9 Sep 2020 12:38:48 +0800 Subject: [PATCH] Use path.config binding in "october:env" to allow unit test to work --- modules/system/console/OctoberEnv.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/system/console/OctoberEnv.php b/modules/system/console/OctoberEnv.php index 43f2079bf..d13997b3e 100644 --- a/modules/system/console/OctoberEnv.php +++ b/modules/system/console/OctoberEnv.php @@ -1,5 +1,6 @@ config . '.php'), $content); + file_put_contents(rtrim(App::make('path.config'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $this->config . '.php', $content); } /** @@ -335,7 +336,7 @@ class OctoberEnv extends Command */ protected function lines() { - return file(config_path($this->config . '.php')); + return file(rtrim(App::make('path.config'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $this->config . '.php'); } /**