改名
This commit is contained in:
@@ -72,8 +72,8 @@ class Middleware
|
|||||||
}
|
}
|
||||||
[$controller, $action] = $node->handler;
|
[$controller, $action] = $node->handler;
|
||||||
$attributes = Snowflake::app()->getAttributes();
|
$attributes = Snowflake::app()->getAttributes();
|
||||||
$annotation = $attributes->getMethods($controller, $action);
|
$annotation = $attributes->getMethods(get_class($controller), $action);
|
||||||
if (count($annotation) < 1) {
|
if (empty($annotation)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach ($annotation as $attribute) {
|
foreach ($annotation as $attribute) {
|
||||||
|
|||||||
Reference in New Issue
Block a user