This commit is contained in:
2021-03-05 17:03:15 +08:00
parent ae43f08207
commit 3ef83c3f62
+2 -2
View File
@@ -298,12 +298,12 @@ class Node extends HttpService
*/
private function annotationInject(string $className, string $action): static
{
$attributes = Snowflake::app()->getAttributes();
$annotation = $attributes->getMethods($className, $action);
$annotation = annotation()->getMethods($className, $action);
if (empty($annotation)) {
return $this;
}
foreach ($annotation as $name => $attribute) {
var_dump(get_class($attribute));
if ($attribute instanceof \Annotation\Route\Interceptor) {
$this->addInterceptor($attribute->interceptor);
}