hyperf / hyperf

🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.
https://www.hyperf.io
MIT License
6.05k stars 1.18k forks source link

Added AOP that can act on enum #6895

Closed assert6 closed 4 days ago

huangzhhui commented 1 week ago

往类常量应用注解有哪些场景?

huangdijia commented 1 week ago

往类常量应用注解有哪些场景?

enum 可以定义方法

assert6 commented 1 week ago

往类常量应用注解有哪些场景?

目前文档里的枚举类是EnumConstantsTrait 实现的, 收集常量注解后, 可以不用use EnumConstantsTrait, 直接Collection 取