Request注入方法返回值 (#180)

This commit is contained in:
lilwil
2016-06-30 10:08:28 +08:00
committed by 云无心
parent 4962b2354e
commit 441b482594

View File

@@ -135,7 +135,7 @@ class Request
{
if (array_key_exists($method, self::$hook)) {
array_unshift($args, $this);
call_user_func_array(self::$hook[$method], $args);
return call_user_func_array(self::$hook[$method], $args);
} else {
throw new Exception('method not exists:' . __CLASS__ . '->' . $method);
}