mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
Request注入方法返回值 (#180)
This commit is contained in:
@@ -135,7 +135,7 @@ class Request
|
|||||||
{
|
{
|
||||||
if (array_key_exists($method, self::$hook)) {
|
if (array_key_exists($method, self::$hook)) {
|
||||||
array_unshift($args, $this);
|
array_unshift($args, $this);
|
||||||
call_user_func_array(self::$hook[$method], $args);
|
return call_user_func_array(self::$hook[$method], $args);
|
||||||
} else {
|
} else {
|
||||||
throw new Exception('method not exists:' . __CLASS__ . '->' . $method);
|
throw new Exception('method not exists:' . __CLASS__ . '->' . $method);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user