src/PHPDish/Bundle/CoreBundle/Command/AbstractInstallCommand.php
protected function bulkRunCommands(array $commands, OutputInterface $output, $renderProgressbar = false)
    {
        if ($renderProgressbar) {
            $progressbar = new ProgressBar($output, count($commands));
        }
        foreach ($commands as $commandItem) {
            if (is_string($commandItem)) {
                $command = $commandItem;
                $options = [];
            } else {
                $command = $commandItem['command'];
                $options = $commandItem['options'];
            }
            $this->executeCommand($command, null, $options);
            $renderProgressbar && $progressbar->advance(1);
        }
        $renderProgressbar && $progressbar->finish();
    }
protected function bulkRunCommands(array $commands, OutputInterface $output, $renderProgressbar = false)
    {
        if ($renderProgressbar) {
            $progressbar = new ProgressBar($output, count($commands));
        }
        foreach ($commands as $commandItem) {
            if (is_string($commandItem)) {
                $command = $commandItem;
                $options = [];
            } else {
                $command = $commandItem['command'];
                $options = $commandItem['options'];
            }
            $this->executeCommand($command, null, $options);
            $renderProgressbar && $progressbar->advance(1);
        }
        $renderProgressbar && $progressbar->finish();
    }
批量执行命令.

@param array                $commands
@param OutputInterface|null $output
@param bool                 $renderProgressbar