This commit is contained in:
2021-03-24 11:26:46 +08:00
parent 5bfe64ac3e
commit a7cde1fb93
2 changed files with 2 additions and 5 deletions
@@ -9,13 +9,10 @@ use Exception;
use HttpServer\Http\Request; use HttpServer\Http\Request;
use HttpServer\Route\Router; use HttpServer\Route\Router;
use JetBrains\PhpStorm\Pure; use JetBrains\PhpStorm\Pure;
use ReflectionException;
use Snowflake\Exception\ComponentException;
use Snowflake\Exception\ConfigException; use Snowflake\Exception\ConfigException;
use Snowflake\Exception\NotFindClassException;
use Snowflake\Snowflake; use Snowflake\Snowflake;
#[\Attribute(\Attribute::TARGET_METHOD)] class RpcClient extends Attribute #[\Attribute(\Attribute::TARGET_METHOD)] class RpcProducer extends Attribute
{ {
private string $uri = ''; private string $uri = '';
@@ -17,7 +17,7 @@ use Snowflake\Snowflake;
* Class RpcClient * Class RpcClient
* @package Annotation\Rpc * @package Annotation\Rpc
*/ */
#[\Attribute(\Attribute::TARGET_CLASS)] class RpcProducer extends Attribute #[\Attribute(\Attribute::TARGET_CLASS)] class RpcClient extends Attribute
{ {
private array $config; private array $config;