use injection on the request::detect_env method for better testability.
This commit is contained in:
@@ -168,7 +168,9 @@ if (Request::cli())
|
||||
}
|
||||
else
|
||||
{
|
||||
$environment = Request::detect_env($environments);
|
||||
$root = Request::foundation()->getRootUrl();
|
||||
|
||||
$environment = Request::detect_env($environments, $root);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user