From 6d41cd9e089aef255a077eefc5f51ad738446e5c Mon Sep 17 00:00:00 2001 From: Serkan Yildiz Date: Thu, 9 Nov 2017 13:49:35 +0100 Subject: [PATCH 1/2] [WebserverBundle] fixed the bug that caused that the webserver would start anyway even you said N. --- .../Bundle/WebServerBundle/Command/ServerStartCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php b/src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php index 57de788608547..4eee990ff3a8e 100644 --- a/src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php +++ b/src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php @@ -93,7 +93,7 @@ protected function execute(InputInterface $input, OutputInterface $output) 'You can either install it or use the "server:run" command instead.', )); - if ($io->ask('Do you want to execute server:run immediately? [yN] ', false)) { + if ($io->confirm('Do you want to execute server:run immediately? [yN] ', false)) { return $this->getApplication()->find('server:run')->run($input, $output); } From 0f76ab09bc3cea244c8866df72704665038eaed3 Mon Sep 17 00:00:00 2001 From: Serkan Yildiz Date: Thu, 9 Nov 2017 13:58:40 +0100 Subject: [PATCH 2/2] [WebserverBundle] Removed yN because it's automatically added by confirm()' --- .../Bundle/WebServerBundle/Command/ServerStartCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php b/src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php index 4eee990ff3a8e..af90a53f32c99 100644 --- a/src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php +++ b/src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php @@ -93,7 +93,7 @@ protected function execute(InputInterface $input, OutputInterface $output) 'You can either install it or use the "server:run" command instead.', )); - if ($io->confirm('Do you want to execute server:run immediately? [yN] ', false)) { + if ($io->confirm('Do you want to execute server:run immediately?', false)) { return $this->getApplication()->find('server:run')->run($input, $output); }