[FrameworkBundle] Use ProcessHelper for server:run command
This commit is contained in:
parent
a5f36a8a7c
commit
6ca1c90eb7
@ -95,16 +95,13 @@ EOF
|
||||
$builder->setTimeout(null);
|
||||
$process = $builder->getProcess();
|
||||
|
||||
if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
|
||||
$callback = function ($type, $buffer) use ($output) {
|
||||
$output->write($buffer);
|
||||
};
|
||||
} else {
|
||||
$callback = null;
|
||||
if (OutputInterface::VERBOSITY_VERBOSE > $output->getVerbosity()) {
|
||||
$process->disableOutput();
|
||||
}
|
||||
|
||||
$process->run($callback);
|
||||
$this
|
||||
->getHelper('process')
|
||||
->run($output, $process, null, null, OutputInterface::VERBOSITY_VERBOSE);
|
||||
}
|
||||
|
||||
private function createPhpProcessBuilder(InputInterface $input, OutputInterface $output, $env)
|
||||
|
Reference in New Issue
Block a user