/** * @see Console\Command\Command */ protected function execute(InputInterface $input, OutputInterface $output) { try { $this->moduleManager->update(); $output->writeln('Modules have been updated.'); } catch (InvalidArgumentException $e) { $output->writeln("<error>{$e->getMessage()}</error>"); } }
/** * @secured(privilege="edit") */ public function handleSync() { $this->moduleManager->update(); $this->flashMessage($this->translator->translate('Database has been refreshed.'), 'success'); $this->redirect('this'); }