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();