Example #1
0
 /**
  * @param InputInterface   $input
  * @param OutputInterface $output
  * @return int
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->getApplication()->setAutoExit(false);
     $this->detectContao($output);
     if (!$this->initContao()) {
         return false;
     }
     $withDrops = $input->getOption('with-drops');
     $installer = new \IMI\Contao\System\Installer();
     $installer->runUpdates($withDrops);
     $withoutRunonce = $input->getOption('skip-runonce');
     if (!$withoutRunonce) {
         $backend = new \IMI\Contao\System\Backend();
         $backend->runRunOnce();
     }
     $output->writeln('<info>done</info>');
     return 0;
 }