protected function prepareProcessBuilder()
    {
        $pb = new ProcessBuilder();
        $pb->inheritEnvironmentVariables();

        if ($this->sudo) {
            $pb->add('sudo');
        }
        $pb->add($this->bin);
        if ($this->config) {
            $pb->add('--config')
                ->add($this->config);
        }

        $pb->add('--rotate');

        return $pb;
    }
protected function prepareProcessBuilder()
    {
        $pb = new ProcessBuilder();
        $pb->inheritEnvironmentVariables();

        if ($this->sudo) {
            $pb->add('sudo');
        }
        $pb->add($this->bin);
        if ($this->config) {
            $pb->add('--config')
                ->add($this->config);
        }

        $pb->add('--rotate');

        return $pb;
    }
protected function prepareProcessBuilder ( ) { $ pb = new ProcessBuilder ( ) ; $ pb -> inheritEnvironmentVariables ( ) ; if ( $ this -> sudo ) { $ pb -> add ( 'sudo' ) ; } $ pb -> add ( $ this -> bin ) ; if ( $ this -> config ) { $ pb -> add ( '--config' ) -> add ( $ this -> config ) ; } $ pb -> add ( '--rotate' ) ; return $ pb ; }
Prepare process builder

@return ProcessBuilder
Prepare process builder