From 43d525e7dc8feb1b723dcea211f3b04696ea225e Mon Sep 17 00:00:00 2001 From: Wouter J Date: Sat, 21 Nov 2015 17:49:57 +0100 Subject: [PATCH 1/2] Fix bug with $output overloading --- .../Bundle/FrameworkBundle/Command/ServerStartCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php index 309ede6d068d3..405e79c68c6cb 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php @@ -72,9 +72,9 @@ protected function configure() /** * {@inheritdoc} */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $cliOutput) { - $output = new SymfonyStyle($input, $output); + $output = new SymfonyStyle($input, $cliOutput); if (!extension_loaded('pcntl')) { $output->error(array( @@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output) if ($output->ask('Do you want to execute server:run immediately? [Yn] ', true)) { $command = $this->getApplication()->find('server:run'); - return $command->run($input, $output); + return $command->run($input, $cliOutput); } return 1; From 81eba9647f7a93a67ce413eaca2a1a77e1a5187b Mon Sep 17 00:00:00 2001 From: Wouter J Date: Wed, 25 Nov 2015 16:37:35 +0100 Subject: [PATCH 2/2] Keep parameter name equal to the interface --- .../Bundle/FrameworkBundle/Command/ServerStartCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php index 405e79c68c6cb..f743cfbe3312e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php @@ -72,9 +72,9 @@ protected function configure() /** * {@inheritdoc} */ - protected function execute(InputInterface $input, OutputInterface $cliOutput) + protected function execute(InputInterface $input, OutputInterface $output) { - $output = new SymfonyStyle($input, $cliOutput); + $output = new SymfonyStyle($input, $cliOutput = $output); if (!extension_loaded('pcntl')) { $output->error(array( pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy