From bced58597ab82293c699d85f742e4593cb281875 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 27 May 2016 11:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/Controller.php b/library/think/Controller.php index db0dc194..bd6676d9 100644 --- a/library/think/Controller.php +++ b/library/think/Controller.php @@ -34,9 +34,10 @@ class Controller /** * 架构函数 + * @param \think\Request $request Request对象 * @access public */ - public function __construct(Request $request) + public function __construct(Request $request = null) { $this->view = View::instance(Config::get('template'), Config::get('view_replace_str')); $this->request = $request;