From dca9dbdb515427e10d83533a36e2fbd08925312e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=9E=9C=E7=9A=84=E5=A6=82=E6=9E=9C?= Date: Wed, 28 Sep 2022 12:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E8=A7=A3=E5=BA=93?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Command/DefaultCommand/Server.php | 2 +- src/Core.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/DefaultCommand/Server.php b/src/Command/DefaultCommand/Server.php index c1fb00f..bc911c6 100644 --- a/src/Command/DefaultCommand/Server.php +++ b/src/Command/DefaultCommand/Server.php @@ -99,7 +99,7 @@ protected function start() $displayItem = $displayItem + $data; $displayItem['swoole version'] = phpversion('swoole'); $displayItem['php version'] = phpversion(); - $displayItem['easyswoole.php version'] = SysConst::EASYSWOOLE_VERSION; + $displayItem['easyswoole version'] = SysConst::EASYSWOOLE_VERSION; $displayItem['run mode'] = Core::getInstance()->runMode(); $displayItem['temp dir'] = EASYSWOOLE_TEMP_DIR; $displayItem['log dir'] = EASYSWOOLE_LOG_DIR; diff --git a/src/Core.php b/src/Core.php index 9e0bfbd..d972afc 100644 --- a/src/Core.php +++ b/src/Core.php @@ -241,7 +241,7 @@ private function registerDefaultCallBack(Server $server, int $serverType) if ($waitTime == 0) { $waitTime = 5; } - $dispatcher = Dispatcher::getInstance()->setNamespacePrefix($namespace)->setMaxDepth($depth)->setControllerMaxPoolNum($max)->setControllerPoolWaitTime($waitTime);; + $dispatcher = Dispatcher::getInstance()->setNamespacePrefix($namespace)->setMaxDepth($depth); //补充HTTP_EXCEPTION_HANDLER默认回调 $httpExceptionHandler = Di::getInstance()->get(SysConst::HTTP_EXCEPTION_HANDLER); if (!is_callable($httpExceptionHandler)) {