This commit is contained in:
2021-03-24 19:13:58 +08:00
parent aee908b7d5
commit c29a1a7f19
+14
View File
@@ -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