From a7cde1fb93f52ed2becd5a9d45487fcc24d4a7cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Mar 2021 11:26:46 +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/{RpcClient.php => RpcProducer.php} | 5 +---- Annotation/Rpc/{RpcProducer.php => RpcClient.php} | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) rename Annotation/Route/{RpcClient.php => RpcProducer.php} (81%) rename Annotation/Rpc/{RpcProducer.php => RpcClient.php} (93%) diff --git a/Annotation/Route/RpcClient.php b/Annotation/Route/RpcProducer.php similarity index 81% rename from Annotation/Route/RpcClient.php rename to Annotation/Route/RpcProducer.php index 5b259bc7..6ed0da48 100644 --- a/Annotation/Route/RpcClient.php +++ b/Annotation/Route/RpcProducer.php @@ -9,13 +9,10 @@ use Exception; use HttpServer\Http\Request; use HttpServer\Route\Router; use JetBrains\PhpStorm\Pure; -use ReflectionException; -use Snowflake\Exception\ComponentException; use Snowflake\Exception\ConfigException; -use Snowflake\Exception\NotFindClassException; use Snowflake\Snowflake; -#[\Attribute(\Attribute::TARGET_METHOD)] class RpcClient extends Attribute +#[\Attribute(\Attribute::TARGET_METHOD)] class RpcProducer extends Attribute { private string $uri = ''; diff --git a/Annotation/Rpc/RpcProducer.php b/Annotation/Rpc/RpcClient.php similarity index 93% rename from Annotation/Rpc/RpcProducer.php rename to Annotation/Rpc/RpcClient.php index c7c139a6..f836a945 100644 --- a/Annotation/Rpc/RpcProducer.php +++ b/Annotation/Rpc/RpcClient.php @@ -17,7 +17,7 @@ use Snowflake\Snowflake; * Class RpcClient * @package Annotation\Rpc */ -#[\Attribute(\Attribute::TARGET_CLASS)] class RpcProducer extends Attribute +#[\Attribute(\Attribute::TARGET_CLASS)] class RpcClient extends Attribute { private array $config;