From ab9302e790f85cb67c274760d7befdf2d5251d11 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Mon, 20 Jul 2020 17:01:01 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E4=BF=AE=E5=A4=8DFinder=20not=20found?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchAdminService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/catcher/CatchAdminService.php b/extend/catcher/CatchAdminService.php index 806c446..606859c 100644 --- a/extend/catcher/CatchAdminService.php +++ b/extend/catcher/CatchAdminService.php @@ -43,7 +43,7 @@ class CatchAdminService extends Service */ protected function registerCommands(): void { - if ($this->app->runningInConsole()) { + if ($this->app->runningInConsole() && class_exists('Symfony\Component\Finder\Finder')) { $catchConsole = new CatchConsole($this->app); $this->app->bind('catch_console', $catchConsole);