i faced a problem when upgrade from 2.1 to 2.2
in my action controller i am calling a console command and get the output from the command like this.
$input = new ArgvInput(array(
'object_id' => $object_id,
'client_id' => $client_id,
'email_address' => $email
)
);
$output = new ConsoleOutput();
$command = $this->get('mycommand');
$returnCode = $command->run($input, $output);
$response = stream_get_contents($output->getStream());
it worked in symfony 2.1, but after upgrading to 2.2 first i got the following exception "Not enough arguments.". To prevent this i have added a dummy parameter in front of others.
But after this the command executes, but i cant read the output, it always empty.
Is there any solution for this?