From c36e4461e03d634bf43e1b8745991f8f78175cc5 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 1 Feb 2022 15:33:13 +1100 Subject: [PATCH] Compatibility --- modules/system/traits/SetupHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/system/traits/SetupHelper.php b/modules/system/traits/SetupHelper.php index f65ebf7941..7814d50105 100644 --- a/modules/system/traits/SetupHelper.php +++ b/modules/system/traits/SetupHelper.php @@ -7,6 +7,7 @@ use Exception; use System\Classes\UpdateManager; use October\Rain\Process\Composer as ComposerProcess; +use Illuminate\Support\Env; use Dotenv\Dotenv; use PDOException; use PDO; @@ -81,7 +82,7 @@ protected function checkEnvWritable() */ protected function refreshEnvVars() { - DotEnv::create(App::environmentPath(), App::environmentFile())->load(); + DotEnv::create(Env::getRepository(), App::environmentPath(), App::environmentFile())->load(); } /**