Get Environment Name in Symfony 7

Get Environment Name in Symfony 7

By default, Symfony application has three environments: dev for local development, prod for production servers and test for running automated tests. This tutorial explains how to get environment name in...