fixed:修复Finder not found
This commit is contained in:
parent
f396732544
commit
ab9302e790
@ -43,7 +43,7 @@ class CatchAdminService extends Service
|
|||||||
*/
|
*/
|
||||||
protected function registerCommands(): void
|
protected function registerCommands(): void
|
||||||
{
|
{
|
||||||
if ($this->app->runningInConsole()) {
|
if ($this->app->runningInConsole() && class_exists('Symfony\Component\Finder\Finder')) {
|
||||||
$catchConsole = new CatchConsole($this->app);
|
$catchConsole = new CatchConsole($this->app);
|
||||||
|
|
||||||
$this->app->bind('catch_console', $catchConsole);
|
$this->app->bind('catch_console', $catchConsole);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user