protected function createProcess($interactive = false)
    {
        $process = new Process($this->container->resolve('SHELL'), null, null, null, null, []);

        if ($interactive) {
            $process->setTty(true);
        } else {
            if ($this->container->has('TIMEOUT') && $timeout = $this->container->get('TIMEOUT')) {
                $process->setTimeout($this->container->get('TIMEOUT'));
            }
        }

        return $process;
    }
protected function createProcess($interactive = false)
    {
        $process = new Process($this->container->resolve('SHELL'), null, null, null, null, []);

        if ($interactive) {
            $process->setTty(true);
        } else {
            if ($this->container->has('TIMEOUT') && $timeout = $this->container->get('TIMEOUT')) {
                $process->setTimeout($this->container->get('TIMEOUT'));
            }
        }

        return $process;
    }
protected function createProcess ( $ interactive = false ) { $ process = new Process ( $ this -> container -> resolve ( 'SHELL' ) , null , null , null , null , [ ] ) ; if ( $ interactive ) { $ process -> setTty ( true ) ; } else { if ( $ this -> container -> has ( 'TIMEOUT' ) && $ timeout = $ this -> container -> get ( 'TIMEOUT' ) ) { $ process -> setTimeout ( $ this -> container -> get ( 'TIMEOUT' ) ) ; } } return $ process ; }
Create the process instance to use for non-interactive handling

@var     bool $interactive
@return \Symfony\Component\Process\Process
Create the process instance to use for non - interactive handling