From a71ed560de85bc3a9a8da8037f3634d7d1e081f8 Mon Sep 17 00:00:00 2001 From: huangdijia Date: Tue, 22 Dec 2015 15:25:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96App::run()=EF=BC=8C=E7=9C=81?= =?UTF-8?q?=E5=8E=BB=E5=8F=82=E6=95=B0$config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/app.php | 4 ++-- start.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/app.php b/library/think/app.php index 039e6a04..74518c31 100644 --- a/library/think/app.php +++ b/library/think/app.php @@ -23,10 +23,10 @@ class App * @access public * @return void */ - public static function run(array $config = []) + public static function run() { // 初始化公共模块 - self::initModule(COMMON_MODULE, $config); + self::initModule(COMMON_MODULE, Config::get()); // 获取配置参数 $config = Config::get(); diff --git a/start.php b/start.php index 6dbd55e2..491ba596 100644 --- a/start.php +++ b/start.php @@ -48,4 +48,4 @@ if ('sae' != APP_MODE && is_file(APP_PATH . 'build.php')) { } // 执行应用 -!IN_UNIT_TEST && App::run(Config::get()); +!IN_UNIT_TEST && App::run();