@@ -30,10 +30,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
3030 $ serverConfig = new ServerConfig ();
3131
3232 return match ($ serverConfig ->getDriver ()) {
33- Driver::WORKERMAN => $ this ->workermanStart (),
33+ Driver::WORKERMAN => $ this ->workermanStart ($ output ),
3434 Driver::ROADRUNNER => $ this ->roadrunnerStart ($ output , $ serverConfig ),
35- Driver::SWOOLE => $ this ->swooleStart (),
36- Driver::AMP => $ this ->ampStart (),
35+ Driver::SWOOLE => $ this ->swooleStart ($ output ),
36+ Driver::AMP => $ this ->ampStart ($ output ),
3737 default => throw new RuntimeException ('unsupported driver: ' . $ serverConfig ->getDriver ()),
3838 };
3939 }
@@ -74,9 +74,9 @@ private function roadrunnerStart(OutputInterface $output, ServerConfig $serverCo
7474 * @throws ReflectionException
7575 * @throws NotFoundExceptionInterface
7676 */
77- private function workermanStart (): int
77+ private function workermanStart (OutputInterface $ output ): int
7878 {
79- Application::getClass (Application::class)->run ();
79+ Application::getClass (Application::class)->run ($ output );
8080
8181 return Command::SUCCESS ;
8282 }
@@ -86,9 +86,9 @@ private function workermanStart(): int
8686 * @throws ReflectionException
8787 * @throws NotFoundExceptionInterface
8888 */
89- private function swooleStart (): int
89+ private function swooleStart (OutputInterface $ output ): int
9090 {
91- Application::getClass (Application::class)->run ();
91+ Application::getClass (Application::class)->run ($ output );
9292
9393 return Command::SUCCESS ;
9494 }
@@ -98,9 +98,9 @@ private function swooleStart(): int
9898 * @throws ReflectionException
9999 * @throws NotFoundExceptionInterface
100100 */
101- private function ampStart (): int
101+ private function ampStart (OutputInterface $ output ): int
102102 {
103- Application::getClass (Application::class)->run ();
103+ Application::getClass (Application::class)->run ($ output );
104104
105105 return Command::SUCCESS ;
106106 }
0 commit comments