-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Closed
Copy link
Labels
DependencyInjectionFrameworkBundlehasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.
Description
Description
EnvVarLoaderInterface is a nice way of providing env vars dynamically, it is particularly useful for multi-tenant apps where env vars like DATABASE_URL
can be loaded from an external vault.
This comment symfony/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 where DATABASE_URL
can be different for each tenant as the EnvVarLoader
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 in EnvVarLoaders
?
Example
No response
Metadata
Metadata
Assignees
Labels
DependencyInjectionFrameworkBundlehasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.