升级Thinkphp到5127版本

This commit is contained in:
cxdbz committed 2019-06-06 19:31:46 +08:00
1 parent 22a8f915e3
commit 9b8bd06b33
24 files changed
+504 -185

No files matched your search

+6 -6
View File
@@ -20,7 +20,7 @@ use think\route\Dispatch;
*/
class App extends Container
{
const VERSION = '5.1.35 LTS';
const VERSION = '5.1.37 LTS';
/**
* 当前模块路径
@@ -179,6 +179,11 @@ class App extends Container
$this->instance('app', $this);
// 加载环境变量配置文件
if (is_file($this->rootPath . '.env')) {
$this->env->load($this->rootPath . '.env');
}
$this->configExt = $this->env->get('config_ext', '.php');
// 加载惯例配置文件
@@ -196,11 +201,6 @@ class App extends Container
'vendor_path' => $this->rootPath . 'vendor' . DIRECTORY_SEPARATOR,
]);
// 加载环境变量配置文件
if (is_file($this->rootPath . '.env')) {
$this->env->load($this->rootPath . '.env');
}
$this->namespace = $this->env->get('app_namespace', $this->namespace);
$this->env->set('app_namespace', $this->namespace);