diff --git a/src/Aop/Aop/FilterArgAop.php b/src/Aop/Aop/FilterArgAop.php index 2150bc7f87..8f17a9bc8a 100644 --- a/src/Aop/Aop/FilterArgAop.php +++ b/src/Aop/Aop/FilterArgAop.php @@ -21,7 +21,7 @@ class FilterArgAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Aop\\Annotation\\FilterArg'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Aop\Annotation\FilterArg::class])] #[Before] public function parse(JoinPoint $joinPoint) { diff --git a/src/Aop/Aop/InjectArgAop.php b/src/Aop/Aop/InjectArgAop.php index 2bc07c361b..82f504cae7 100644 --- a/src/Aop/Aop/InjectArgAop.php +++ b/src/Aop/Aop/InjectArgAop.php @@ -21,7 +21,7 @@ class InjectArgAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Aop\\Annotation\\InjectArg'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Aop\Annotation\InjectArg::class])] #[Around] public function parse(AroundJoinPoint $joinPoint) { diff --git a/src/Async/Aop/AsyncAop.php b/src/Async/Aop/AsyncAop.php index 75187c3586..1f910e5514 100644 --- a/src/Async/Aop/AsyncAop.php +++ b/src/Async/Aop/AsyncAop.php @@ -21,7 +21,7 @@ class AsyncAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\Async'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Async\Annotation\Async::class])] #[Around] public function parseAsync(AroundJoinPoint $joinPoint) { @@ -39,7 +39,7 @@ public function parseAsync(AroundJoinPoint $joinPoint) * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\Defer'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Async\Annotation\Defer::class])] #[Around] public function parseDefer(AroundJoinPoint $joinPoint) { @@ -57,7 +57,7 @@ public function parseDefer(AroundJoinPoint $joinPoint) * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\DeferAsync'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Async\Annotation\DeferAsync::class])] #[Around] public function parseDeferAsync(AroundJoinPoint $joinPoint) { diff --git a/src/Cache/Aop/CacheEvictAop.php b/src/Cache/Aop/CacheEvictAop.php index f267ed8170..cd9009e0c4 100644 --- a/src/Cache/Aop/CacheEvictAop.php +++ b/src/Cache/Aop/CacheEvictAop.php @@ -25,7 +25,7 @@ class CacheEvictAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\CacheEvict'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Cache\Annotation\CacheEvict::class])] #[Around] public function parseCacheEvict(AroundJoinPoint $joinPoint) { diff --git a/src/Cache/Aop/CachePutAop.php b/src/Cache/Aop/CachePutAop.php index 53f5a23d44..1870bca9bb 100644 --- a/src/Cache/Aop/CachePutAop.php +++ b/src/Cache/Aop/CachePutAop.php @@ -25,7 +25,7 @@ class CachePutAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\CachePut'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Cache\Annotation\CachePut::class])] #[Around] public function parseCachePut(AroundJoinPoint $joinPoint) { diff --git a/src/Cache/Aop/CacheableAop.php b/src/Cache/Aop/CacheableAop.php index 52ee3bb6af..e644f3e890 100644 --- a/src/Cache/Aop/CacheableAop.php +++ b/src/Cache/Aop/CacheableAop.php @@ -27,7 +27,7 @@ class CacheableAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\Cacheable'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Cache\Annotation\Cacheable::class])] #[Around] public function parseCacheable(AroundJoinPoint $joinPoint) { diff --git a/src/Components/jwt/src/Aop/JWTValidationAop.php b/src/Components/jwt/src/Aop/JWTValidationAop.php index 165ff748d0..0965cba5eb 100644 --- a/src/Components/jwt/src/Aop/JWTValidationAop.php +++ b/src/Components/jwt/src/Aop/JWTValidationAop.php @@ -27,7 +27,7 @@ class JWTValidationAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\JWT\\Annotation\\JWTValidation'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\JWT\Annotation\JWTValidation::class])] #[Around] public function around(AroundJoinPoint $joinPoint) { diff --git a/src/Components/mqtt/src/imi/Server/MQTT/DataParser/MQTTDataParser.php b/src/Components/mqtt/src/imi/Server/MQTT/DataParser/MQTTDataParser.php index de3ccd5e5d..dec0943480 100644 --- a/src/Components/mqtt/src/imi/Server/MQTT/DataParser/MQTTDataParser.php +++ b/src/Components/mqtt/src/imi/Server/MQTT/DataParser/MQTTDataParser.php @@ -14,7 +14,7 @@ #[Bean(recursion: false)] class MQTTDataParser implements IParser { - #[Inject(name: 'BinSoul\\Net\\Mqtt\\DefaultPacketFactory')] + #[Inject(name: \BinSoul\Net\Mqtt\DefaultPacketFactory::class)] protected DefaultPacketFactory $packetFactory; /** diff --git a/src/Components/pgsql/src/Model/Cli/Model/ModelGenerate.php b/src/Components/pgsql/src/Model/Cli/Model/ModelGenerate.php index 8897d78cc5..7bdd635e07 100644 --- a/src/Components/pgsql/src/Model/Cli/Model/ModelGenerate.php +++ b/src/Components/pgsql/src/Model/Cli/Model/ModelGenerate.php @@ -28,7 +28,7 @@ class ModelGenerate extends BaseCommand */ #[CommandAction(name: 'pgModel')] #[Argument(name: 'namespace', type: \Imi\Cli\ArgType::STRING, required: true, comments: '生成的Model所在命名空间')] - #[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: 'Imi\\Pgsql\\Model\\PgModel', comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')] + #[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: \Imi\Pgsql\Model\PgModel::class, comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')] #[Option(name: 'database', type: \Imi\Cli\ArgType::STRING, comments: '数据库名,不传则取连接池默认配置的库名')] #[Option(name: 'poolName', type: \Imi\Cli\ArgType::STRING, comments: '连接池名称,不传则取默认连接池')] #[Option(name: 'prefix', type: \Imi\Cli\ArgType::ARRAY, default: [], comments: '传值则去除该表前缀,以半角逗号分隔多个前缀')] diff --git a/src/Components/rate-limit/src/Aspect/RateLimitAspect.php b/src/Components/rate-limit/src/Aspect/RateLimitAspect.php index ae084fd224..df306bf605 100644 --- a/src/Components/rate-limit/src/Aspect/RateLimitAspect.php +++ b/src/Components/rate-limit/src/Aspect/RateLimitAspect.php @@ -22,7 +22,7 @@ class RateLimitAspect * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\RateLimit\\Annotation\\RateLimit'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\RateLimit\Annotation\RateLimit::class])] #[Around] public function parse(AroundJoinPoint $joinPoint) { diff --git a/src/Components/rate-limit/src/Aspect/WorkerLimitAspect.php b/src/Components/rate-limit/src/Aspect/WorkerLimitAspect.php index f91b1aad0e..d61c4a7930 100644 --- a/src/Components/rate-limit/src/Aspect/WorkerLimitAspect.php +++ b/src/Components/rate-limit/src/Aspect/WorkerLimitAspect.php @@ -22,7 +22,7 @@ class WorkerLimitAspect * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\RateLimit\\Annotation\\WorkerLimit'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\RateLimit\Annotation\WorkerLimit::class])] #[Around] public function parse(AroundJoinPoint $joinPoint) { diff --git a/src/Db/Aop/TransactionAop.php b/src/Db/Aop/TransactionAop.php index 50b4e5d677..da6c1d4ed2 100644 --- a/src/Db/Aop/TransactionAop.php +++ b/src/Db/Aop/TransactionAop.php @@ -24,7 +24,7 @@ class TransactionAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Db\\Annotation\\Transaction'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Db\Annotation\Transaction::class])] #[Around] public function parseTransaction(AroundJoinPoint $joinPoint) { diff --git a/src/HttpValidate/Aop/AutoValidationAop.php b/src/HttpValidate/Aop/AutoValidationAop.php index 17d76753e4..00e9f6f6f8 100644 --- a/src/HttpValidate/Aop/AutoValidationAop.php +++ b/src/HttpValidate/Aop/AutoValidationAop.php @@ -22,7 +22,7 @@ class AutoValidationAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\HttpValidate\\Annotation\\HttpValidation'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\HttpValidate\Annotation\HttpValidation::class])] #[Before] public function validateHttp(JoinPoint $joinPoint) { diff --git a/src/Lock/Aop/LockAop.php b/src/Lock/Aop/LockAop.php index 7c094f856c..195b69e770 100644 --- a/src/Lock/Aop/LockAop.php +++ b/src/Lock/Aop/LockAop.php @@ -22,7 +22,7 @@ class LockAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Lock\\Annotation\\Lockable'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Lock\Annotation\Lockable::class])] #[Around] public function parseLock(AroundJoinPoint $joinPoint) { diff --git a/src/Model/Cli/Model/ModelGenerate.php b/src/Model/Cli/Model/ModelGenerate.php index cc4c9da35b..bb73c34fc5 100644 --- a/src/Model/Cli/Model/ModelGenerate.php +++ b/src/Model/Cli/Model/ModelGenerate.php @@ -36,7 +36,7 @@ class ModelGenerate extends BaseCommand */ #[CommandAction(name: 'model', description: '模型生成', dynamicOptions: true)] #[Argument(name: 'namespace', type: \Imi\Cli\ArgType::STRING, required: true, comments: '生成的Model所在命名空间')] - #[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: 'Imi\\Model\\Model', comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')] + #[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: \Imi\Model\Model::class, comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')] #[Option(name: 'database', type: \Imi\Cli\ArgType::STRING, comments: '数据库名,不传则取连接池默认配置的库名')] #[Option(name: 'poolName', type: \Imi\Cli\ArgType::STRING, comments: '连接池名称,不传则取默认连接池')] #[Option(name: 'prefix', type: \Imi\Cli\ArgType::ARRAY_EX, default: [], comments: '传值则去除该表前缀,以半角逗号分隔多个前缀')] diff --git a/src/Pool/Aop/PoolCleanAop.php b/src/Pool/Aop/PoolCleanAop.php index a03705801c..35477727c4 100644 --- a/src/Pool/Aop/PoolCleanAop.php +++ b/src/Pool/Aop/PoolCleanAop.php @@ -21,7 +21,7 @@ class PoolCleanAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Pool\\Annotation\\PoolClean'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Pool\Annotation\PoolClean::class])] #[Before] public function parse(JoinPoint $joinPoint) { diff --git a/src/Validate/Aop/AutoValidationAop.php b/src/Validate/Aop/AutoValidationAop.php index 5d14b5f8cd..933d60cbcc 100644 --- a/src/Validate/Aop/AutoValidationAop.php +++ b/src/Validate/Aop/AutoValidationAop.php @@ -23,7 +23,7 @@ class AutoValidationAop * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION_CONSTRUCT, allow: ['Imi\\Validate\\Annotation\\AutoValidation'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION_CONSTRUCT, allow: [\Imi\Validate\Annotation\AutoValidation::class])] #[After] public function validateConstruct(JoinPoint $joinPoint) { @@ -70,7 +70,7 @@ public function validateConstruct(JoinPoint $joinPoint) * * @return mixed */ - #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Validate\\Annotation\\AutoValidation'])] + #[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Validate\Annotation\AutoValidation::class])] #[Around] public function validateMethod(AroundJoinPoint $joinPoint) {