Environment detection can no longer use domain names due to the ease of spoofing.
So the detection has to be handled by the developer, rather than the framework.
Using a closure in the $env = $app->detectEnvironment() call is supported allowing the developer to determine which environment is to handle the request.