Load dev env as a PHP array instead of an env file

This commit is contained in:
Alejandro Celaya
2024-10-24 09:59:13 +02:00
parent f4da9c1fcc
commit 45e108d21e
9 changed files with 84 additions and 78 deletions

View File

@@ -15,8 +15,8 @@ chdir(dirname(__DIR__));
require 'vendor/autoload.php';
// Promote env vars from installer config
loadEnvVarsFromConfig('config/params/generated_config.php', enumValues(EnvVars::class));
// Promote env vars from installer or dev config
loadEnvVarsFromConfig('config/params/*.php', enumValues(EnvVars::class));
// This is one of the first files loaded. Configure the timezone and memory limit here
ini_set('memory_limit', EnvVars::MEMORY_LIMIT->loadFromEnv());