From 91127a37536d9b1e14e50be7da496470c2fa82f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 30 Mar 2021 11:25:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Route/RpcProducer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Annotation/Route/RpcProducer.php b/Annotation/Route/RpcProducer.php index 6ed0da48..83d95f14 100644 --- a/Annotation/Route/RpcProducer.php +++ b/Annotation/Route/RpcProducer.php @@ -12,6 +12,11 @@ use JetBrains\PhpStorm\Pure; use Snowflake\Exception\ConfigException; use Snowflake\Snowflake; + +/** + * Class RpcProducer + * @package Annotation\Route + */ #[\Attribute(\Attribute::TARGET_METHOD)] class RpcProducer extends Attribute { @@ -40,6 +45,7 @@ use Snowflake\Snowflake; // TODO: Implement setHandler() method. $router = Snowflake::app()->getRouter(); + var_dump($this->uri); $router->addRoute($this->uri, $handler, Request::HTTP_CMD); return $router;