public function call($taskName, $arguments = array())
{
if ($this->output->isVerbose()) {
$this->output->writeln("<info>Calling task: </info>" . $taskName . " from " . $this->task->getName());
}
$command = $this->task->getContainer()->getApp()->find($taskName);
if (!$command) {
throw new \RuntimeException("Not found a before task command '{$taskName}'.");
}
$arguments['command'] = $taskName;
$input = new ArrayInput($arguments);
return $command->run($this->input, $this->output);
}