[FrameworkBundle] Use ProcessHelper for server:run command

This commit is contained in:
Romain Neutron 2014-06-17 01:47:52 +02:00
parent a5f36a8a7c
commit 6ca1c90eb7

View File

@ -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)