From c6212776d6dedce11d138c50228a3db1febe0e23 Mon Sep 17 00:00:00 2001 From: Jesus Manuel Olivas Date: Sun, 9 Apr 2017 13:19:39 -0700 Subject: [PATCH] [server] Add http to url. (#3260) --- src/Command/ServerCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Command/ServerCommand.php b/src/Command/ServerCommand.php index 1d7fcb5e2..c236fd0cb 100644 --- a/src/Command/ServerCommand.php +++ b/src/Command/ServerCommand.php @@ -65,7 +65,6 @@ protected function configure() protected function execute(InputInterface $input, OutputInterface $output) { $io = new DrupalStyle($input, $output); - $learning = $input->hasOption('learning')?$input->getOption('learning'):false; $address = $this->validatePort($input->getArgument('address')); $finder = new PhpExecutableFinder(); @@ -90,7 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $io->commentBlock( sprintf( $this->trans('commands.server.messages.listening'), - $address + 'http://'.$address ) ); @@ -99,7 +98,10 @@ protected function execute(InputInterface $input, OutputInterface $output) if (!$process->isSuccessful()) { $io->error($process->getErrorOutput()); + return 1; } + + return 0; } /**