Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Closed
Description
Description
EnvVarLoaderInterface is a nice way of providing env vars dynamically, it is particularly useful for multi-tenant apps where env vars likeDATABASE_URL can be loaded from an external vault.
This commentsymfony/symfony#34295 (comment) has a nice example of its usage.
The latest best practices of Symfony recommend to add default env vars to.env file, it doesn't work well with multi-tenant setup whereDATABASE_URL can be different for each tenant as theEnvVarLoader won't override existing env vars which were loaded from .env file, hence the "feature request", can we add possibility of overriding existing env vars inEnvVarLoaders ?
Example
No response