mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-27 10:35:34 +08:00
add Class-based custom annotation parsing
This commit is contained in:
@@ -99,6 +99,9 @@ class AnnotationParser
|
||||
continue 2;
|
||||
} elseif ($vs instanceof Middleware) {
|
||||
$middleware_addon = $vs;
|
||||
} elseif ($vs instanceof CustomAnnotation) {
|
||||
$vs->class = $reflection_class->getName();
|
||||
ZMBuf::$events[get_class($vs)][] = $vs;
|
||||
}
|
||||
}
|
||||
foreach ($methods as $vs) {
|
||||
|
||||
Reference in New Issue
Block a user