generate($this->argument('name'), (bool) $this->option('force')); } catch (Throwable $e) { $this->error($e->getMessage()); return self::FAILURE; } foreach ($files as $file) { $this->line("created {$file}"); } $this->newLine(); $this->info('Enable the module in modules_statuses.json, then run composer dump-autoload.'); return self::SUCCESS; } }