diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php
index 50649e4d22..98779a8160 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php
@@ -84,8 +84,10 @@ EOF
return 1;
}
+ $address = $input->getArgument('address');
+
if ($pid > 0) {
- $output->writeln('Server started successfully');
+ $output->writeln(sprintf('Web server listening on http://%s', $address));
return;
}
@@ -97,7 +99,7 @@ EOF
}
$process = $this->createServerProcess(
- $input->getArgument('address'),
+ $address,
$input->getOption('docroot'),
$input->getOption('router'),
$env,
@@ -105,7 +107,7 @@ EOF
);
$process->disableOutput();
$process->start();
- $lockFile = $this->getLockFile($input->getArgument('address'));
+ $lockFile = $this->getLockFile($address);
touch($lockFile);
if (!$process->isRunning()) {
diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStatusCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStatusCommand.php
index 9d48fc4bbd..2c6d2c49ff 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStatusCommand.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStatusCommand.php
@@ -50,9 +50,9 @@ class ServerStatusCommand extends ServerCommand
}
if (file_exists($this->getLockFile($address))) {
- $output->writeln(sprintf('Web server still listening on %s', $address));
+ $output->writeln(sprintf('Web server still listening on http://%s', $address));
} else {
- $output->writeln(sprintf('No web server is listening on %s', $address));
+ $output->writeln(sprintf('No web server is listening on http://%s', $address));
}
}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStopCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStopCommand.php
index c1b3a91cd1..cba9f7a8c4 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStopCommand.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStopCommand.php
@@ -56,12 +56,12 @@ EOF
$lockFile = $this->getLockFile($address);
if (!file_exists($lockFile)) {
- $output->writeln(sprintf('No web server is listening on %s', $address));
+ $output->writeln(sprintf('No web server is listening on http://%s', $address));
return 1;
}
unlink($lockFile);
- $output->writeln(sprintf('Stopped the web server listening on %s', $address));
+ $output->writeln(sprintf('Stopped the web server listening on http://%s', $address));
}
}