Remove the populating of the $_SERVER variable. $_ENV should be enough.

There's no special need to populate the $_SERVER variable with the environment configuration. 

Using the $_ENV variable to retrieve environment specific configuration is also more logic.