modify
This commit is contained in:
@@ -635,8 +635,12 @@ class Router extends HttpService implements RouterInterface
|
|||||||
$instance = Snowflake::getDi()->get($class);
|
$instance = Snowflake::getDi()->get($class);
|
||||||
$methods = Snowflake::getDi()->getMethodAttribute($class);
|
$methods = Snowflake::getDi()->getMethodAttribute($class);
|
||||||
foreach ($methods as $method => $attribute) {
|
foreach ($methods as $method => $attribute) {
|
||||||
var_dump($attribute);
|
if (empty($attribute)) {
|
||||||
$attribute->execute($instance, $method);
|
continue;
|
||||||
|
}
|
||||||
|
foreach ($attribute as $item) {
|
||||||
|
$item->execute($instance, $method);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user