改名
This commit is contained in:
@@ -533,7 +533,6 @@ class Node extends HttpService
|
|||||||
if (empty($dispatchParams)) {
|
if (empty($dispatchParams)) {
|
||||||
$dispatchParams = [\request()];
|
$dispatchParams = [\request()];
|
||||||
}
|
}
|
||||||
var_dump($dispatchParams);
|
|
||||||
if ($this->handler instanceof Closure) {
|
if ($this->handler instanceof Closure) {
|
||||||
return call_user_func($this->handler, ...$dispatchParams);
|
return call_user_func($this->handler, ...$dispatchParams);
|
||||||
}
|
}
|
||||||
@@ -575,6 +574,7 @@ class Node extends HttpService
|
|||||||
private function runWith(): mixed
|
private function runWith(): mixed
|
||||||
{
|
{
|
||||||
if (func_num_args() > 0) {
|
if (func_num_args() > 0) {
|
||||||
|
var_dump(...func_get_args());
|
||||||
return call_user_func($this->callback, ...func_get_args());
|
return call_user_func($this->callback, ...func_get_args());
|
||||||
} else {
|
} else {
|
||||||
return call_user_func($this->callback, \request());
|
return call_user_func($this->callback, \request());
|
||||||
|
|||||||
Reference in New Issue
Block a user