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;