Fixing bugs.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user