From 03ac6c4f629619068143bd83209716e224a29980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=81=E7=81=AB=E8=A1=8C=E8=80=85?= Date: Fri, 24 Sep 2021 17:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=91=BD=E4=BB=A4=E8=A1=8C?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4=E6=8B=BC?= =?UTF-8?q?=E6=8E=A5=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Console/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Kernel.php b/src/Console/Kernel.php index 5f47a21..33ff4bc 100644 --- a/src/Console/Kernel.php +++ b/src/Console/Kernel.php @@ -206,7 +206,7 @@ EOF; if (empty($consolePath)) continue; $commands = Finder::create()->in($consolePath)->files(); foreach ($commands as $command) { - $command = 'Plugin\\' . str_replace(['/', '.php'], ['\\', ''], Str::after($command->getPathname(), base_path('plugin'))); + $command = "Plugin" . str_replace(['/', '.php'], ['\\', ''], Str::after($command->getPathname(), base_path('plugin'))); $this->doCommand($console, $command); } } -- Gitee