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;
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