This commit is contained in:
2021-08-06 15:19:35 +08:00
parent fc253b52bf
commit 68b7b1c020
+3 -2
View File
@@ -194,9 +194,10 @@ class Node
public function setParameters(): static
{
$container = Snowflake::getDi();
if (empty($this->_handler)){
return $this;
}
$dispatcher = $this->_handler;
unset($this->_handler);
if ($dispatcher instanceof Closure) {
$this->_injectParameters = $container->resolveFunctionParameters($dispatcher);
} else {