From 7908290346d7cfb08fba786ff44941f0e85016e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 16 Oct 2024 14:53:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B4=A7=E6=80=A5=E4=BF=AE=E5=A4=8D=20s?= =?UTF-8?q?ys.php=20=E5=8A=A0=E8=BD=BD=E4=B8=8D=E5=88=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/think-library/src/Library.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/think-library/src/Library.php b/plugin/think-library/src/Library.php index 901c3d643..bf7104296 100644 --- a/plugin/think-library/src/Library.php +++ b/plugin/think-library/src/Library.php @@ -110,7 +110,7 @@ class Library extends Service [$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);