sdasd
All checks were successful
Deploy / deploy-staging (push) Successful in 25s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-25 01:19:00 +02:00
parent 9531fdbd35
commit 30fe39cd6c
4 changed files with 59 additions and 2 deletions

View File

@@ -6,6 +6,11 @@ namespace App;
final class ConfigLoader
{
public static function currentEnvironment(): string
{
return self::detectEnvironment();
}
/**
* @return array<string, mixed>
*/
@@ -14,7 +19,7 @@ final class ConfigLoader
$basePath = $projectRoot . '/config/' . $name . '.php';
$config = is_file($basePath) ? require $basePath : [];
$appEnv = self::detectEnvironment();
$appEnv = self::currentEnvironment();
$envPath = $projectRoot . '/config/' . $appEnv . '/' . $name . '.php';
if (!is_file($envPath)) {