Skip to content

Commit

Permalink
fix: 紧急修复 sys.php 加载不到的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Oct 16, 2024
1 parent a945cd8 commit 52d3cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function register()
[$dir, $ext] = [$this->app->getBasePath(), $this->app->getConfigExt()];
ToolsExtend::findFilesArray($dir, function (SplFileInfo $info) use ($ext) {
$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}provider{$ext}")) $this->app->bind(include $file);
if (is_file($file = "{$dir}event{$ext}")) $this->app->loadEvent(include $file);
Expand Down

0 comments on commit 52d3cb3

Please sign in to comment.