改名
This commit is contained in:
@@ -194,9 +194,10 @@ class Node
|
|||||||
public function setParameters(): static
|
public function setParameters(): static
|
||||||
{
|
{
|
||||||
$container = Snowflake::getDi();
|
$container = Snowflake::getDi();
|
||||||
|
if (empty($this->_handler)){
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
$dispatcher = $this->_handler;
|
$dispatcher = $this->_handler;
|
||||||
unset($this->_handler);
|
|
||||||
if ($dispatcher instanceof Closure) {
|
if ($dispatcher instanceof Closure) {
|
||||||
$this->_injectParameters = $container->resolveFunctionParameters($dispatcher);
|
$this->_injectParameters = $container->resolveFunctionParameters($dispatcher);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user