/**
  * @return array|ViewModel
  */
 public function headerBarAction()
 {
     if ($this->navigation->getType() === NavModel::NAV_UPDATER) {
         if ($this->status->isUpdateError() || $this->status->isUpdateInProgress()) {
             $this->view->setVariable('redirect', '../' . Environment::UPDATER_DIR . '/index.php');
         }
     }
     $this->view->setTemplate('/magento/setup/navigation/header-bar.phtml');
     $this->view->setTerminal(true);
     return $this->view;
 }
 /**
  * Check if Cron job can be run
  *
  * @return bool
  */
 private function checkRun()
 {
     return $this->deploymentConfig->isAvailable() && $this->readinessCheck->runReadinessCheck() && !$this->status->isUpdateInProgress() && !$this->status->isUpdateError();
 }
Example #3
0
 /**
  * Check if Cron job can be run
  *
  * @return bool
  */
 private function checkRun()
 {
     return $this->readinessCheck->runReadinessCheck() && !$this->status->isUpdateInProgress() && !$this->status->isUpdateError();
 }