diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php index aca9624db588..446db900e339 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php @@ -84,11 +84,15 @@ protected function execute(InputInterface $input, OutputInterface $output) ->locateResource('@FrameworkBundle/Resources/config/router.php') ; + $output->writeln(sprintf("Server running on %s\n", $input->getArgument('address'))); + $builder = new ProcessBuilder(array(PHP_BINARY, '-S', $input->getArgument('address'), $router)); $builder->setWorkingDirectory($input->getOption('docroot')); $builder->setTimeout(null); $builder->getProcess()->run(function ($type, $buffer) use ($output) { - $output->write($buffer); + if (OutputInterface::VERBOSITY_VERBOSE === $output->getVerbosity()) { + $output->write($buffer); + } }); } }