php-pm / php-pm-httpkernel

HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM
MIT License
246 stars 72 forks source link

Add support for the new .env files structure #174

Closed acasademont closed 4 years ago

acasademont commented 4 years ago

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 commented 4 years ago

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

acasademont commented 4 years ago

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