session类改为自动初始化 便于各个模块自行初始化

This commit is contained in:
thinkphp
2016-02-19 11:35:41 +08:00
parent e7ad730317
commit 36fd836a71
2 changed files with 15 additions and 16 deletions

View File

@@ -66,11 +66,6 @@ class App
}
}
// 启动session CLI 不开启
if (!IS_CLI && $config['use_session']) {
Session::init($config['session']);
}
if (empty(self::$dispatch['type'])) {
// 未指定调度类型 则进行URL路由检测
self::route($config);