改名
This commit is contained in:
@@ -73,11 +73,11 @@ class Middleware
|
||||
[$controller, $action] = $node->handler;
|
||||
$attributes = Snowflake::app()->getAttributes();
|
||||
$annotation = $attributes->getMethods(get_class($controller), $action);
|
||||
var_dump($annotation);
|
||||
if (empty($annotation)) {
|
||||
return;
|
||||
}
|
||||
foreach ($annotation as $attribute) {
|
||||
foreach ($annotation as $name => $_attribute) {
|
||||
foreach ($_attribute as $attribute){
|
||||
if ($attribute instanceof Interceptor) {
|
||||
$node->addInterceptor($attribute->interceptor);
|
||||
}
|
||||
@@ -92,6 +92,7 @@ class Middleware
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user