This commit is contained in:
2020-12-16 15:37:23 +08:00
parent f12994dd55
commit 18743e0003
7 changed files with 23 additions and 36 deletions
+3 -3
View File
@@ -56,9 +56,9 @@ class Middleware
public function getGenerate(Node $node): mixed
{
try {
// if (is_array($node->handler) && is_object($node->handler[0])) {
// $this->set_attributes($node);
// }
if (is_array($node->handler) && is_object($node->handler[0])) {
$this->set_attributes($node);
}
return $node->callback = Reduce::reduce(function () use ($node) {
return Dispatch::create($node->handler, func_get_args())->dispatch();
}, $this->annotation($node));