diff --git a/packages/framework/src/Console/Commands/ServeCommand.php b/packages/framework/src/Console/Commands/ServeCommand.php index 04813e17308..e1dc710556c 100644 --- a/packages/framework/src/Console/Commands/ServeCommand.php +++ b/packages/framework/src/Console/Commands/ServeCommand.php @@ -27,8 +27,11 @@ class ServeCommand extends Command /** @var string */ protected $description = 'Start the realtime compiler server.'; + protected ConsoleOutput $console; + public function handle(): int { + $this->configureOutput(); $this->printStartMessage(); $this->runServerProcess(sprintf('php -S %s:%d %s', @@ -67,6 +70,13 @@ protected function getEnvironmentVariables(): array ]; } + protected function configureOutput(): void + { + if (! $this->useBasicOutput()) { + $this->console = new ConsoleOutput($this->output->isVerbose()); + } + } + protected function printStartMessage(): void { $this->useBasicOutput()