File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Roots/Acorn/Bootstrap Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
use WP_CLI ;
6
6
use Illuminate \Contracts \Foundation \Application ;
7
7
use Roots \Acorn \Console \Kernel ;
8
- use Symfony \Component \Console \Input \ArrayInput ;
8
+ use Symfony \Component \Console \Input \StringInput ;
9
9
use Symfony \Component \Console \Output \ConsoleOutput ;
10
10
11
11
class RegisterConsole
@@ -37,13 +37,13 @@ public function bootstrap(Application $app)
37
37
38
38
$ kernel ->commands ();
39
39
40
- $ input = $ args ;
40
+ $ command = implode ( ' ' , $ args) ;
41
41
42
42
foreach ($ assoc_args as $ key => $ value ) {
43
- $ input [ "-- {$ key }" ] = $ value ;
43
+ $ command .= "-- {$ key }=' { $ value} ' " ;
44
44
}
45
45
46
- $ status = $ kernel ->handle ($ input = new ArrayInput ( $ input ), new ConsoleOutput ());
46
+ $ status = $ kernel ->handle ($ input = new StringInput ( $ command ), new ConsoleOutput ());
47
47
48
48
$ kernel ->terminate ($ input , $ status );
49
49
You can’t perform that action at this time.
0 commit comments