Commit e4080c02 by jan

get_cli_option() is called outside Laravel app, so namespace prefix must be left there

parent 3cd624ea
...@@ -574,7 +574,7 @@ function yield($section) ...@@ -574,7 +574,7 @@ function yield($section)
*/ */
function get_cli_option($option, $default = null) function get_cli_option($option, $default = null)
{ {
foreach (Request::foundation()->server->get('argv') as $argument) foreach (Laravel\Request::foundation()->server->get('argv') as $argument)
{ {
if (starts_with($argument, "--{$option}=")) if (starts_with($argument, "--{$option}="))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment