I’m using the Symfony 2 php framework, which has a couple of different usage environments: development, production and test. The app.php front controller accesses the production environment and the app_dev.php front controller accesses the development environment. Can anyone familiar with Symfony advise what is the best way to restrict the development environment to developers? I don’t want the development version of my web application to be viewable by users of my site, they should be restricted to using the production environment.
Share
Well, out of the box, the standard distribution has an IP-based guard check at the top of the dev controller.
However, as the comments indicate, you aren’t beholden to that approach. For example, if you’re running Apache, you can add basic HTTP Authentication to the dev and test controllers.