Report question

Question: Symfony2: determine if a controller is called from a development environment or from a production environment