From 891e515764f2ffbcd6fd8992a765ab2088758db9 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 17 Jan 2024 16:31:36 +0000 Subject: [PATCH] Fixes L11 base configuration files --- .../HarmonizeConfigurationFiles.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/BuildProcess/HarmonizeConfigurationFiles.php b/src/BuildProcess/HarmonizeConfigurationFiles.php index bf91f96d..c537b2ce 100644 --- a/src/BuildProcess/HarmonizeConfigurationFiles.php +++ b/src/BuildProcess/HarmonizeConfigurationFiles.php @@ -18,13 +18,20 @@ public function __invoke() { Helpers::step('Harmonizing Configuration Files'); - $configFiles = (new Finder())->files()->in($this->appPath.'/config'); + foreach ([ + $this->appPath.'/vendor/laravel/framework/config', + $this->appPath.'/config', + ] as $path) { + if (! is_dir($path)) { + continue; + } - foreach ($configFiles as $file) { - file_put_contents( - $file->getRealPath(), - $this->replaceAwsEnvironmentVariables($file) - ); + foreach ((new Finder())->files()->in($path) as $file) { + file_put_contents( + $file->getRealPath(), + $this->replaceAwsEnvironmentVariables($file) + ); + } } }