Get Working Environment in Symfony
While developing a Symfony application, in lots of cases, you might want to know the current working environment and do some action accordingly. I used to use the following code to retrieve the environment: However, this is a tedious and time consuming way to retrieve the data. The environment information …