cleaning up.

This commit is contained in:
Taylor Otwell
2012-06-03 17:37:46 -05:00
parent d9c0dc0c35
commit e12b554cbb
2 changed files with 9 additions and 4 deletions

View File

@@ -149,16 +149,18 @@ Request::$foundation = RequestFoundation::createFromGlobals();
|
| Next we're ready to determine the application environment. This may be
| set either via the command line options or via the mapping of URIs to
| environments that lives in the "paths.php" file for the application and
| is parsed. When determining the CLI environment, the "--env" CLI option
| overrides the mapping in "paths.php".
| environments that lives in the "paths.php" file for the application
| and is parsed. When determining the CLI environment, the "--env"
| CLI option overrides the mapping in "paths.php".
|
*/
if (Request::cli())
{
$environment = get_cli_option('env');
if (! isset($environment)) {
if ( ! isset($environment))
{
$environment = Request::detect_env($environments, gethostname());
}
}