Fixing bugs.

This commit is contained in:
Taylor Otwell
2012-04-20 11:35:47 -05:00
parent 98ea9ac41f
commit a92ab1ca30
5 changed files with 42 additions and 24 deletions

View File

@@ -156,15 +156,7 @@ Request::$foundation = RequestFoundation::createFromGlobals();
if (Request::cli())
{
foreach (Request::foundation()->server->get('argv') as $argument)
{
if (starts_with($argument, '--env='))
{
$environment = substr($argument, 6);
break;
}
}
$environment = get_cli_option('env');
}
else
{