public function passThroughProcess(Process $process)
    {
        if ($this->output->isVeryVerbose()) {
            $this->output->writeln(sprintf('<bg=blue;fg=white;> RUN </> <fg=blue>%s</>', $process->getCommandLine()));
        }
        $process->run(function ($type, $buffer) {
            $this->output->write($buffer);
        });

        return $process;
    }
public function passThroughProcess(Process $process)
    {
        if ($this->output->isVeryVerbose()) {
            $this->output->writeln(sprintf('<bg=blue;fg=white;> RUN </> <fg=blue>%s</>', $process->getCommandLine()));
        }
        $process->run(function ($type, $buffer) {
            $this->output->write($buffer);
        });

        return $process;
    }
public function passThroughProcess ( Process $ process ) { if ( $ this -> output -> isVeryVerbose ( ) ) { $ this -> output -> writeln ( sprintf ( '<bg=blue;fg=white;> RUN </> <fg=blue>%s</>' , $ process -> getCommandLine ( ) ) ) ; } $ process -> run ( function ( $ type , $ buffer ) { $ this -> output -> write ( $ buffer ) ; } ) ; return $ process ; }
Run a process and send output, unaltered, immediately.

@param Process $process

@return Process
Run a process and send output unaltered immediately .