From 65064c04f48c36d8738b263c9ca814617ede1794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 25 Oct 2021 18:20:28 +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 --- composer.json | 2 +- src/Client.php | 2 +- src/config.php | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 src/config.php diff --git a/composer.json b/composer.json index 2898998..16522fa 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "php": ">=8.0", "ext-json": "*", "ext-rdkafka": "*", - "psr/event-dispatcher": "^1.0" + "google/protobuf": "^3.17" }, "autoload": { "psr-4": { diff --git a/src/Client.php b/src/Client.php index 3752010..d2f1544 100644 --- a/src/Client.php +++ b/src/Client.php @@ -3,7 +3,7 @@ namespace Kiri\Rpc; use Exception; -use Swoole\Coroutine\Http\Client as CoroutineClient; +use Swoole\Coroutine\Http\Handler\Client as CoroutineClient; class Client { diff --git a/src/config.php b/src/config.php new file mode 100644 index 0000000..7ae72c2 --- /dev/null +++ b/src/config.php @@ -0,0 +1,23 @@ + [ + + + 'consumers' => [ + 'userService' => [ + + 'type' => 'json', + + + 'class' => '' + + + ] + + + ] + + ] +];