silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
720 stars 820 forks source link

Migrate from m1/env to symfony/dotenv #11259

Open maxime-rainville opened 1 month ago

maxime-rainville commented 1 month ago

We currently use m1/env to load our .env file. This library hasn't been updated in 4 years.

symfony/dotenv is better maintained. If we ended up adopting more Symfony component it makes sense to pick this one.

If we end up adopting more of Symfony's bootstrapping logic, we could also consider dropping EnvironmentLoader or Environment and let Symfony load environment variables for us.