public function runCommands(array $commands)
    {
        $output = $this->output;

        $callback = function ($type, $buffer) use ($output) {
            if (Process::ERR === $type) {
                $output->write('<info>OUT</info> '.$buffer);
            } else {
                $output->write('<comment>OUT</comment> '.$buffer);
            }
        };

        foreach ($commands as $command) {
            $this->runCommand($command['line'], $command['allow_failures'], $callback);
        }
    }
public function runCommands(array $commands)
    {
        $output = $this->output;

        $callback = function ($type, $buffer) use ($output) {
            if (Process::ERR === $type) {
                $output->write('<info>OUT</info> '.$buffer);
            } else {
                $output->write('<comment>OUT</comment> '.$buffer);
            }
        };

        foreach ($commands as $command) {
            $this->runCommand($command['line'], $command['allow_failures'], $callback);
        }
    }
public function runCommands ( array $ commands ) { $ output = $ this -> output ; $ callback = function ( $ type , $ buffer ) use ( $ output ) { if ( Process :: ERR === $ type ) { $ output -> write ( '<info>OUT</info> ' . $ buffer ) ; } else { $ output -> write ( '<comment>OUT</comment> ' . $ buffer ) ; } } ; foreach ( $ commands as $ command ) { $ this -> runCommand ( $ command [ 'line' ] , $ command [ 'allow_failures' ] , $ callback ) ; } }
Run a series of shell command through a Process.

@param array $commands
Run a series of shell command through a Process .