Example #1
0
 /**
  * Return array of lowest and highest version of dependency as integer
  *
  * @param Dependency $dependency
  * @return array
  */
 protected function getLowestAndHighestIntegerVersions(Dependency $dependency)
 {
     $lowestVersion = $dependency->getLowestVersion();
     $lowestVersionInteger = $lowestVersion ? VersionNumberUtility::convertVersionNumberToInteger($lowestVersion) : 0;
     $highestVersion = $dependency->getHighestVersion();
     $highestVersionInteger = $highestVersion ? VersionNumberUtility::convertVersionNumberToInteger($highestVersion) : 0;
     return ['lowestIntegerVersion' => $lowestVersionInteger, 'highestIntegerVersion' => $highestVersionInteger];
 }
 /**
  * Return array of lowest and highest version of dependency as integer
  *
  * @param \TYPO3\CMS\Extensionmanager\Domain\Model\Dependency $dependency
  * @return array
  */
 protected function getLowestAndHighestIntegerVersions(\TYPO3\CMS\Extensionmanager\Domain\Model\Dependency $dependency)
 {
     $lowestVersion = $dependency->getLowestVersion();
     $lowestVersionInteger = $lowestVersion ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($lowestVersion) : 0;
     $highestVersion = $dependency->getHighestVersion();
     $highestVersionInteger = $highestVersion ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($highestVersion) : 0;
     return array('lowestIntegerVersion' => $lowestVersionInteger, 'highestIntegerVersion' => $highestVersionInteger);
 }