use injection on the request::detect_env method for better testability.

This commit is contained in:
Taylor Otwell
2012-04-13 20:34:13 -05:00
parent 44dbbe01da
commit 5d52da696f
2 changed files with 6 additions and 5 deletions

View File

@@ -168,7 +168,9 @@ if (Request::cli())
}
else
{
$environment = Request::detect_env($environments);
$root = Request::foundation()->getRootUrl();
$environment = Request::detect_env($environments, $root);
}
/*