From c29a1a7f196f0c721d3a40c2623c5faada3b9a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Mar 2021 19:13:58 +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/Producer.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Rpc/Producer.php b/Rpc/Producer.php index 74105f83..f13fc3fd 100644 --- a/Rpc/Producer.php +++ b/Rpc/Producer.php @@ -145,6 +145,20 @@ class Producer extends Component } + /** + * @param string $name + * @param string|null $host + * @return Client + * @throws ComponentException + * @throws NotFindClassException + * @throws ReflectionException + */ + public function consumer(string $name, string $host = null): Client + { + return $this->getClient($name, $host); + } + + /** * @param $name * @param $producer