Inheritance: extends Piwik\Plugin\Controller
Exemplo n.º 1
0
 public function execute()
 {
     $label = $this->translator->translate('Installation_SystemCheckUpdateHttps');
     if (CoreUpdater\Controller::isUpdatingOverHttps()) {
         return array(DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_OK));
     }
     $comment = $this->translator->translate('Installation_SystemCheckUpdateHttpsNotSupported');
     return array(DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_WARNING, $comment));
 }
Exemplo n.º 2
0
 protected function makeUpdate(InputInterface $input, OutputInterface $output, $doDryRun)
 {
     $this->checkAllRequiredOptionsAreNotEmpty($input);
     $updateController = new Controller();
     echo $updateController->runUpdaterAndExit($doDryRun);
 }