diff --git a/Rpc/Consumer.php b/Rpc/Consumer.php index cbda37f2..b36a114c 100644 --- a/Rpc/Consumer.php +++ b/Rpc/Consumer.php @@ -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