mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 04:48:10 +08:00
fix: 紧急修复 sys.php 加载不到的问题
This commit is contained in:
parent
787509ddb6
commit
7908290346
@ -110,7 +110,7 @@ class Library extends Service
|
|||||||
[$dir, $ext] = [$this->app->getBasePath(), $this->app->getConfigExt()];
|
[$dir, $ext] = [$this->app->getBasePath(), $this->app->getConfigExt()];
|
||||||
ToolsExtend::findFilesArray($dir, function (SplFileInfo $info) use ($ext) {
|
ToolsExtend::findFilesArray($dir, function (SplFileInfo $info) use ($ext) {
|
||||||
$info->getBasename() === "sys{$ext}" && include_once $info->getPathname();
|
$info->getBasename() === "sys{$ext}" && include_once $info->getPathname();
|
||||||
}, null, true, 1);
|
}, null, true, 2);
|
||||||
if (is_file($file = "{$dir}common{$ext}")) include_once $file;
|
if (is_file($file = "{$dir}common{$ext}")) include_once $file;
|
||||||
if (is_file($file = "{$dir}provider{$ext}")) $this->app->bind(include $file);
|
if (is_file($file = "{$dir}provider{$ext}")) $this->app->bind(include $file);
|
||||||
if (is_file($file = "{$dir}event{$ext}")) $this->app->loadEvent(include $file);
|
if (is_file($file = "{$dir}event{$ext}")) $this->app->loadEvent(include $file);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user