This commit is contained in:
2021-04-01 17:42:42 +08:00
parent e01ce5ff4c
commit 7e1b3c9458
+8
View File
@@ -4,6 +4,7 @@
namespace Rpc; namespace Rpc;
use Annotation\Inject;
use Exception; use Exception;
use Snowflake\Snowflake; use Snowflake\Snowflake;
@@ -15,6 +16,13 @@ abstract class Consumer implements IProducer
{ {
protected ?Client $client = null;
#[Inject('rpc')]
public ?Producer $rpc = null;
/** /**
* @param string $name * @param string $name
* @return mixed * @return mixed