public function spawnEditor(OutputInterface $output, string $editor, string $filename) : int
    {
        $descriptorspec = [STDIN, STDOUT, STDERR];
        $command = sprintf('%s %s', $editor, escapeshellarg($filename));

        $output->writeln(sprintf('<info>Executing "%s"</info>', $command));

        $process = proc_open($command, $descriptorspec, $pipes);
        return proc_close($process);
    }
public function spawnEditor(OutputInterface $output, string $editor, string $filename) : int
    {
        $descriptorspec = [STDIN, STDOUT, STDERR];
        $command = sprintf('%s %s', $editor, escapeshellarg($filename));

        $output->writeln(sprintf('<info>Executing "%s"</info>', $command));

        $process = proc_open($command, $descriptorspec, $pipes);
        return proc_close($process);
    }
public function spawnEditor ( OutputInterface $ output , string $ editor , string $ filename ) : int { $ descriptorspec = [ STDIN , STDOUT , STDERR ] ; $ command = sprintf ( '%s %s' , $ editor , escapeshellarg ( $ filename ) ) ; $ output -> writeln ( sprintf ( '<info>Executing "%s"</info>' , $ command ) ) ; $ process = proc_open ( $ command , $ descriptorspec , $ pipes ) ; return proc_close ( $ process ) ; }
Spawn an editor to edit the given filename.
Spawn an editor to edit the given filename .