From dc62af349422501ed88083f7d5455fcacab5400e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 28 Nov 2017 18:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bapp=5Fdispatch=E9=92=A9?= =?UTF-8?q?=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/think/App.php b/library/think/App.php index 2478f793..547eeca0 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -70,7 +70,7 @@ class App /** * 执行应用程序 * @access public - * @param Request $request 请求对象 + * @param Request $request 请求对象 * @return Response * @throws Exception */ @@ -106,10 +106,10 @@ class App APP_PATH . 'lang' . DS . $request->langset() . EXT, ]); + // 监听 app_dispatch + Hook::listen('app_dispatch', self::$dispatch); // 获取应用调度信息 $dispatch = self::$dispatch; - // 监听 app_dispatch - Hook::listen('app_dispatch', $dispatch); // 未设置调度信息则进行 URL 路由检测 if (empty($dispatch)) { @@ -167,7 +167,7 @@ class App /** * 初始化应用,并返回配置信息 * @access public - * @return mixed + * @return array */ public static function initCommon() {