New in Symfony 4.2: Define env vars per environment

Contributed by Kévin Dunglas in #28533. Since the introduction of the DotEnv component in Symfony 3.3, we’ve been working hard to improve the experience of using env vars to configure Symfony apps. In Symfony 4.2, we’ve added a new loadForEnv() method to allow you define different env vars per environment. Instead of creating a single…