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