This commit is contained in:
2020-12-16 15:49:55 +08:00
parent 0de229e3b4
commit 214b458030
+4 -3
View File
@@ -56,10 +56,11 @@ class Middleware
public function getGenerate(Node $node): mixed public function getGenerate(Node $node): mixed
{ {
try { try {
// if (is_array($node->handler) && is_object($node->handler[0])) { if (is_array($node->handler) && is_object($node->handler[0])) {
// $this->set_attributes($node); $this->set_attributes($node);
// } }
return $node->callback = Reduce::reduce(function () use ($node) { return $node->callback = Reduce::reduce(function () use ($node) {
var_dump($node->handler);
return Dispatch::create($node->handler, func_get_args())->dispatch(); return Dispatch::create($node->handler, func_get_args())->dispatch();
}, $this->annotation($node)); }, $this->annotation($node));
} catch (\Throwable $exception) { } catch (\Throwable $exception) {