Esempio n. 1
0
 /**
  * @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>");
     }
 }
Esempio n. 2
0
 /**
  * @secured(privilege="edit")
  */
 public function handleSync()
 {
     $this->moduleManager->update();
     $this->flashMessage($this->translator->translate('Database has been refreshed.'), 'success');
     $this->redirect('this');
 }