Skip to content

Commit 153ef31

Browse files
committed
兼容新版路由结构
1 parent be0b6b4 commit 153ef31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listener/RouteInit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private function parseAnnotations(EventParam $e)
5151
$eventName = 'IMI.ROUTE.INIT.DEFAULT:' . $serverTypeName;
5252
foreach($controllerParser->getByServer($name) as $className => $classItem)
5353
{
54-
$classAnnotation = $classItem['annotation'];
54+
$classAnnotation = $classItem->getAnnotation();
5555
foreach(AnnotationManager::getMethodsAnnotations($className, RpcAction::class) as $methodName => $actionAnnotations)
5656
{
5757
$routes = AnnotationManager::getMethodAnnotations($className, $methodName, RpcRoute::class);

0 commit comments

Comments
 (0)