Command/CliCommand.php
protected function executeTask($task, InputInterface $input, OutputInterface $output, $data)
    {
        $this->doPreExecuteTask($task, $input, $output, $data);
        $return = $task->setData($data)->run($input, $output);
        $this->doPostExecuteTask($task, $input, $output, $data, $return);
        return $task->isSuccessful();
    }
protected function executeTask($task, InputInterface $input, OutputInterface $output, $data)
    {
        $this->doPreExecuteTask($task, $input, $output, $data);
        $return = $task->setData($data)->run($input, $output);
        $this->doPostExecuteTask($task, $input, $output, $data, $return);
        return $task->isSuccessful();
    }
Execute tasks.

@param In2pire\Cli\Task\BaseTask
Task.
@param InputInterface $input
Input.
@param OutputInterface $output
Output.
@param array $data
Prepared data.

@return boolean
True or False.