Ejemplo n.º 1
0
 /**
  * Find out which version upgrade should be handled. This may
  * be different depending on whether development or regular release.
  *
  * @throws \TYPO3\CMS\Install\Controller\Exception
  * @return string Version to handle, eg. 6.2.2
  */
 protected function getVersionToHandle()
 {
     $getVars = \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('install');
     if (!isset($getVars['type'])) {
         throw new \TYPO3\CMS\Install\Controller\Exception('Type must be set to either "regular" or "development"', 1380975303);
     }
     $type = $getVars['type'];
     if ($type === 'development') {
         $versionToHandle = $this->coreVersionService->getYoungestPatchDevelopmentRelease();
     } else {
         $versionToHandle = $this->coreVersionService->getYoungestPatchRelease();
     }
     return $versionToHandle;
 }