示例#1
0
 /**
  * Wrapper method for CoreVersionService
  *
  * @return bool TRUE on success
  */
 public function updateVersionMatrix()
 {
     $success = true;
     try {
         $this->coreVersionService->updateVersionMatrix();
     } catch (RemoteFetchException $e) {
         $success = false;
         /** @var $message StatusInterface */
         $message = $this->objectManager->get(ErrorStatus::class);
         $message->setTitle('Version matrix could not be fetched from get.typo3.org');
         $message->setMessage('Current version specification could not be fetched from http://get.typo3.org/json.' . ' This is probably a network issue, please fix it.');
         $this->messages = array($message);
     }
     return $success;
 }
示例#2
0
 /**
  * Wrapper method for CoreVersionService
  *
  * @return boolean TRUE on success
  */
 public function updateVersionMatrix()
 {
     $success = TRUE;
     try {
         $this->coreVersionService->updateVersionMatrix();
     } catch (\TYPO3\CMS\Install\Service\Exception\RemoteFetchException $e) {
         $success = FALSE;
         /** @var $message \TYPO3\CMS\Install\Status\StatusInterface */
         $message = $this->objectManager->get('TYPO3\\CMS\\Install\\Status\\ErrorStatus');
         $message->setTitle('Version matrix could not be fetched from get.typo3.org');
         $message->setMessage('Current version specification could not be fetched from http://get.typo3.org/json.' . ' This is probably a network issue, please fix it.');
         $this->messages = array($message);
     }
     return $success;
 }