From eca38db038700a6b49ff48c85e4e7fa873b0c798 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 20 Jun 2016 11:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRequest=E7=9A=84=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E6=96=B9=E6=B3=95=E8=B0=83=E7=94=A8=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=B3=A8=E5=85=A5=E5=BD=93=E5=89=8Drequest=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Request.php b/library/think/Request.php index e1d64af9..c3f26da7 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -131,6 +131,7 @@ class Request public function __call($method, $args) { if (array_key_exists($method, self::$hook)) { + array_unshift($args, $this); call_user_func_array(self::$hook[$method], $args); } else { throw new Exception('method not exists:' . __CLASS__ . '->' . $method);