From 59b994f0d889872ff44db27b5df6e23ae24e0fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 20 Aug 2021 19:07:10 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Application.php b/System/Application.php index 9ab13f6a..479e04f1 100644 --- a/System/Application.php +++ b/System/Application.php @@ -15,6 +15,7 @@ use Console\Console; use Console\ConsoleProviders; use Database\DatabasesProviders; use Exception; +use Http\Command; use Http\Context\Response; use Http\Server; use Http\ServerProviders; @@ -226,7 +227,7 @@ class Application extends BaseApplication */ private function enableFileChange($class): void { - if (env('enableFileChange', 'off') == 'off' || !($class instanceof Server)) { + if (env('enableFileChange', 'off') == 'off' || !($class instanceof Command)) { scan_directory(directory('app'), 'App'); } }