From 1c4020810fea946d4ff7546b5cf37e941ff6efaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Aug 2021 13:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/BaseApplication.php | 13 ++----------- http-helper/Server.php | 1 - 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/System/Abstracts/BaseApplication.php b/System/Abstracts/BaseApplication.php index 4f41de7f..08d47746 100644 --- a/System/Abstracts/BaseApplication.php +++ b/System/Abstracts/BaseApplication.php @@ -428,15 +428,6 @@ abstract class BaseApplication extends Component } - /** - * @return \Rpc\Producer - * @throws Exception - */ - public function getRpc(): Producer - { - return $this->get('rpc'); - } - /** * @param $array @@ -463,9 +454,9 @@ abstract class BaseApplication extends Component /** * @param $id - * @param $definition - * @throws ReflectionException + * @return bool * @throws NotFindClassException + * @throws ReflectionException */ public function has($id): bool { diff --git a/http-helper/Server.php b/http-helper/Server.php index cc4a64e6..8fda6d5b 100644 --- a/http-helper/Server.php +++ b/http-helper/Server.php @@ -14,7 +14,6 @@ use Kiri\Exception\ConfigException; use Kiri\Exception\NotFindClassException; use Kiri\Process\Biomonitoring; use ReflectionException; -use Rpc\Service; use Server\Constant; use Server\Events\OnShutdown; use Server\ServerManager;