setName('richdocuments:update-empty-templates') ->setDescription('Update empty template files'); } protected function execute(InputInterface $input, OutputInterface $output) { try { $this->templateManager->updateEmptyTemplates(); $output->writeln('Empty template files were updated'); return 0; } catch (\Exception $e) { $output->writeln('Failed to update templates'); $output->writeln($e->getMessage()); $output->writeln($e->getTraceAsString()); return 1; } } }