From 36a1758c0911df998277e337278366f2b98fcac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 16 Sep 2020 11:04:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Application.php | 2 +- function.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/System/Application.php b/System/Application.php index 56cd1006..ce5ed1b3 100644 --- a/System/Application.php +++ b/System/Application.php @@ -44,7 +44,7 @@ class Application extends BaseApplication */ public function __construct(array $config = []) { -// instance_load(); + instance_load(); parent::__construct($config); } diff --git a/function.php b/function.php index 26456c23..fd18c365 100644 --- a/function.php +++ b/function.php @@ -43,8 +43,7 @@ if (!function_exists('loadByDir')) { */ function classAutoload($namespace, $dirname) { - $path = rtrim(__DIR__ . '/' . $dirname, '/'); - foreach (glob($path . '/*') as $value) { + foreach (glob(rtrim($dirname, '/') . '/*') as $value) { $value = realpath($value); if (is_dir($value)) { classAutoload($namespace, $value);