Altax\Module\Task\Resource\RuntimeTask::call PHP Method

call() public method

public call ( $taskName, $arguments = [] )
    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);
    }