public function editFile(ProcessBuilder $processBuilder, $filePath)
    {
        $proc = $processBuilder->setPrefix($this->_editorCommand)->setArguments([$filePath])->getProcess();
        $proc->setTty(true)->run();

        return $proc;
    }
public function editFile(ProcessBuilder $processBuilder, $filePath)
    {
        $proc = $processBuilder->setPrefix($this->_editorCommand)->setArguments([$filePath])->getProcess();
        $proc->setTty(true)->run();

        return $proc;
    }
public function editFile ( ProcessBuilder $ processBuilder , $ filePath ) { $ proc = $ processBuilder -> setPrefix ( $ this -> _editorCommand ) -> setArguments ( [ $ filePath ] ) -> getProcess ( ) ; $ proc -> setTty ( true ) -> run ( ) ; return $ proc ; }
Edit the given file using the symfony process builder to build the
symfony process to execute.

@api
@param \Symfony\Component\Process\ProcessBuilder $processBuilder The
process builder.
@param string $filePath The path to the file to edit.
@return \Symfony\Component\Process\Process The already-executed process.
Edit the given file using the symfony process builder to build the symfony process to execute .