Platformsh\Cli\Command\CommandBase::runOtherCommand PHP Метод

runOtherCommand() защищенный Метод

Run another CLI command.
protected runOtherCommand ( string $name, array $arguments = [], Symfony\Component\Console\Output\OutputInterface $output = null ) : integer
$name string The name of the other command.
$arguments array Arguments for the other command.
$output Symfony\Component\Console\Output\OutputInterface The output for the other command. Defaults to the current output.
Результат integer
    protected function runOtherCommand($name, array $arguments = [], OutputInterface $output = null)
    {
        /** @var \Platformsh\Cli\Application $application */
        $application = $this->getApplication();
        $command = $application->find($name);
        // Pass on interactivity arguments to the other command.
        if (isset($this->input)) {
            $arguments += ['--yes' => $this->input->getOption('yes'), '--no' => $this->input->getOption('no')];
        }
        $cmdInput = new ArrayInput(['command' => $name] + $arguments);
        $cmdInput->setInteractive(self::$interactive);
        $this->debug('Running command: ' . $name);
        $application->setCurrentCommand($command);
        $result = $command->run($cmdInput, $output ?: $this->output);
        $application->setCurrentCommand($this);
        return $result;
    }