From a82137f95830c14c4d091c43a34fdaafc596511a Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 17 Jan 2024 21:19:05 +0000 Subject: [PATCH] Fixes L11 base configuration files (#247) --- .../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) + ); + } } }