是否可以从控制器向命令发送数组?
我的控制器方法和数组var:
$myArray = array("foo"=>"foo", "bar" => "bar");
$process = new Process('php ../bin/console app:my-command'); //how to send myArray
$process->start();
我的命令:
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln([
'Show my array below'
]);
//print_r($myArray);