新增zip&composer工具

This commit is contained in:
JaguarJack
2020-07-21 08:01:20 +08:00
parent 30f405f233
commit f0351246fc
4 changed files with 118 additions and 4 deletions

View File

@@ -43,10 +43,10 @@ class CatchAdminService extends Service
*/
protected function registerCommands(): void
{
if ($this->app->runningInConsole() && class_exists('Symfony\Component\Finder\Finder')) {
if ($this->app->runningInConsole()) {
$catchConsole = new CatchConsole($this->app);
$this->app->bind('catch_console', $catchConsole);
$this->app->bind('catch\console', $catchConsole);
$this->commands($catchConsole->commands());
}