src/Commands/AssetCommand.php
protected function runCommand($command, $path)
    {
        $process = (new Process($command, $path))->setTimeout(null);

        if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {
            $process->setTty(true);
        }

        $process->run(function ($type, $line) {
            $this->output->write($line);
        });
    }
protected function runCommand($command, $path)
    {
        $process = (new Process($command, $path))->setTimeout(null);

        if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {
            $process->setTty(true);
        }

        $process->run(function ($type, $line) {
            $this->output->write($line);
        });
    }
protected function runCommand ( $ command , $ path ) { $ process = ( new Process ( $ command , $ path ) ) -> setTimeout ( null ) ; if ( '\\' !== DIRECTORY_SEPARATOR && file_exists ( '/dev/tty' ) && is_readable ( '/dev/tty' ) ) { $ process -> setTty ( true ) ; } $ process -> run ( function ( $ type , $ line ) { $ this -> output -> write ( $ line ) ; } ) ; }
Run the given command as a process.

@param  string  $command
@param  string  $path
@return void
Run the given command as a process .