refactor(admin):重构注解获取 upgrade annotations

- Replace Doctrine annotations with PHP 8.1 attributes
- Update annotation classes to use Attribute interface
- Modify attribute usage across multiple controller files
- Update composer.json to use doctrine/annotations ^2.0.0
This commit is contained in:
wolfcode
2025-01-02 17:11:28 +08:00
parent 3d19c8d337
commit fc264630ec

View File

@@ -75,7 +75,7 @@ class Node
$actionList[] = [
'node' => $controllerFormat . '/' . $method->name,
'title' => $annotation->title ?? null,
'is_auth' => $annotation->auth ?? null,
'is_auth' => $annotation->auth ?? false,
'type' => 2,
];
}