From 7e1b3c94586010bde0bfc533dfbb43eaa6d2874d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 1 Apr 2021 17:42:42 +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 --- Rpc/Consumer.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Rpc/Consumer.php b/Rpc/Consumer.php index cbda37f2..b36a114c 100644 --- a/Rpc/Consumer.php +++ b/Rpc/Consumer.php @@ -4,6 +4,7 @@ namespace Rpc; +use Annotation\Inject; use Exception; use Snowflake\Snowflake; @@ -14,6 +15,13 @@ use Snowflake\Snowflake; abstract class Consumer implements IProducer { + + protected ?Client $client = null; + + + #[Inject('rpc')] + public ?Producer $rpc = null; + /** * @param string $name