fixed:修复Finder not found

This commit is contained in:
JaguarJack 2020-07-20 17:01:01 +08:00
parent f396732544
commit ab9302e790

View File

@ -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);