Skip to content

Add support for the new .env files structure #174

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

acasademont
Copy link
Contributor

Sometime ago (https://symfony.com/doc/current/configuration/dot-env-changes.html) , Symfony changed the way .env files were loaded and now accepts a .env.local or a .env.dev file. Right now, php-pm is only loading the .env file. With this change, Symfony now will load all the relevant .env.* files too

@acasademont
Copy link
Contributor Author

PS: I'm only introducing this change for Symfony 5.1+ even though this is available even on Symfony 4. If someone els needs it we could probably rework it to make it work also for previous Symfony versions

PS2: This doesn't break BC, the .env file is being loaded as before

@andig andig merged commit d9037fd into php-pm:master Jul 8, 2020
@acasademont acasademont deleted the load_env branch July 8, 2020 13:46
@acasademont
Copy link
Contributor Author

Thx @andig , could you please tag a release when you can?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants