diff --git a/Annotation/Rpc/Consumer.php b/Annotation/Rpc/Consumer.php new file mode 100644 index 00000000..301beb97 --- /dev/null +++ b/Annotation/Rpc/Consumer.php @@ -0,0 +1,47 @@ +getRpc(); + $rpc->addConsumer($this->cmd, $handler); + return parent::execute($handler); // TODO: Change the autogenerated stub + } + + +} diff --git a/Annotation/Rpc/RpcService.php b/Annotation/Rpc/RpcService.php new file mode 100644 index 00000000..f8bca780 --- /dev/null +++ b/Annotation/Rpc/RpcService.php @@ -0,0 +1,58 @@ +getRpc(); + $rpc->addProducer($this->cmd, $handler, [ + 'host' => $this->host, + 'port' => $this->port, + 'mode' => $this->mode + ]); + return parent::execute($handler); // TODO: Change the autogenerated stub + } + + +}