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' => '' + + + ] + + + ] + + ] +];