Advanced Symfony 2 environment variables

In this article I’m going to share a trick that I use to achieve a similar result of the New in Symfony 3.4: Advanced environment variables for Symfony 2.x.

The new advanced environment variables is a great improvement on the developer experience using symfony. It is the way to go in the future and it expands what you can do using YML thanks to Symfony Expressions in the config and parameter files. Although you could do exactly the same in Symfony 2 with a small little trick.

Continue reading