Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Dotenv] Add support for overriding existing envs#23720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Taluu commentedJul 31, 2017
It if it is in a So basically, this means that the problem is elsewhere. I'm 👎 for this patch in particular. |
chalasr commentedJul 31, 2017
Other libraries address this with a dedicated method, that is better IMHO. See |
voronkovich commentedJul 31, 2017
@chalasr, thanks for the links! I've added the dedicated method as you suggested! |
fabpot commentedAug 1, 2017
While I agree that the references bug should be fixed, I'm 👎 for adding such a method which I consciously decided to not add when I design the library. |
chalasr commentedAug 2, 2017
@fabpot The first approach was a flag set through the constructor. Personally I think we don't need such state hence suggesting a new method (a new arg for the |
chalasr commentedAug 6, 2017
Can't we close this one in favor of#23799? |
nicolas-grekas commentedAug 6, 2017
yes, same purpose |
Uh oh!
There was an error while loading.Please reload this page.
Every time I changed my
.envfile I need to restart the WebServerBundle's server, because the Dotenv component doesn't override the existing environment variables. This PR adds a dedicated method to overload the environment variables.Having an ability to overload the
.envfile, we could solve the issue like this: