diff --git a/Command/SwooleServerHandle.php b/Command/SwooleServerHandle.php
index 661a1bcb..98c71594 100644
--- a/Command/SwooleServerHandle.php
+++ b/Command/SwooleServerHandle.php
@@ -103,24 +103,22 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$driver->boot($trustedHosts, $trustedProxies);
$output->writeln(\sprintf('Swoole HTTP Server started on http://%s:%d for %d requests', $host, $port, $requestLimit));
- if ($profilingEnabled) {
- $io->newLine();
- $rows = [
- ['env', $this->kernel->getEnvironment()],
- ['debug', \var_export($this->kernel->isDebug(), true)],
- ['profiling', \var_export($profilingEnabled, true)],
- ['memory_limit', ServerUtils::formatBytes(ServerUtils::getMaxMemory())],
- ['trusted_hosts', \implode(', ', $trustedHosts)],
- ['trusted_proxies', \implode(', ', $trustedProxies)],
- ];
-
- if ($staticFilesServingEnabled) {
- $rows[] = ['document_root', $this->kernel->getRootDir().'/public'];
- }
+ $rows = [
+ ['env', $this->kernel->getEnvironment()],
+ ['debug', \var_export($this->kernel->isDebug(), true)],
+ ['profiling', \var_export($profilingEnabled, true)],
+ ['memory_limit', ServerUtils::formatBytes(ServerUtils::getMaxMemory())],
+ ['trusted_hosts', \implode(', ', $trustedHosts)],
+ ['trusted_proxies', \implode(', ', $trustedProxies)],
+ ];
- $io->table(['Configuration', 'Values'], $rows);
+ if ($staticFilesServingEnabled) {
+ $rows[] = ['document_root', $this->kernel->getRootDir().'/public'];
}
+ $io->newLine();
+ $io->table(['Configuration', 'Values'], $rows);
+
$server->start();
}
}
diff --git a/Command/SwooleServerRun.php b/Command/SwooleServerRun.php
index 3e898791..e705f659 100644
--- a/Command/SwooleServerRun.php
+++ b/Command/SwooleServerRun.php
@@ -80,26 +80,24 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$trustedHosts = ServerUtils::decodeStringAsSet($_SERVER['APP_TRUSTED_HOSTS']);
$trustedProxies = ServerUtils::decodeStringAsSet($_SERVER['APP_TRUSTED_PROXIES']);
$driver->boot($trustedHosts, $trustedProxies);
- $output->writeln(\sprintf('Swoole HTTP Server started on http://%s:%d', $host, $port));
-
- if ($profilingEnabled) {
- $io->newLine();
- $rows = [
- ['env', $this->kernel->getEnvironment()],
- ['debug', \var_export($this->kernel->isDebug(), true)],
- ['profiling', \var_export($profilingEnabled, true)],
- ['memory_limit', ServerUtils::formatBytes(ServerUtils::getMaxMemory())],
- ['trusted_hosts', \implode(', ', $trustedHosts)],
- ['trusted_proxies', \implode(', ', $trustedProxies)],
- ];
- if ($staticFilesServingEnabled) {
- $rows[] = ['document_root', $this->kernel->getRootDir().'/public'];
- }
+ $rows = [
+ ['env', $this->kernel->getEnvironment()],
+ ['debug', \var_export($this->kernel->isDebug(), true)],
+ ['profiling', \var_export($profilingEnabled, true)],
+ ['memory_limit', ServerUtils::formatBytes(ServerUtils::getMaxMemory())],
+ ['trusted_hosts', \implode(', ', $trustedHosts)],
+ ['trusted_proxies', \implode(', ', $trustedProxies)],
+ ];
- $io->table(['Configuration', 'Values'], $rows);
+ if ($staticFilesServingEnabled) {
+ $rows[] = ['document_root', $this->kernel->getRootDir().'/public'];
}
+ $output->writeln(\sprintf('Swoole HTTP Server started on http://%s:%d', $host, $port));
+ $io->newLine();
+ $io->table(['Configuration', 'Values'], $rows);
+
$server->start();
}
}