Ejemplo n.º 1
0
 /**
  * Checks whether a compatible version of the extension exists in TER
  *
  * @param Dependency $dependency
  * @return bool
  */
 protected function isDownloadableVersionCompatible(Dependency $dependency)
 {
     $versions = $this->getLowestAndHighestIntegerVersions($dependency);
     $count = $this->extensionRepository->countByVersionRangeAndExtensionKey($dependency->getIdentifier(), $versions['lowestIntegerVersion'], $versions['highestIntegerVersion']);
     return !empty($count);
 }
Ejemplo n.º 2
0
 /**
  * Checks whether a compatible version of the extension exists in TER
  *
  * @param \TYPO3\CMS\Extensionmanager\Domain\Model\Dependency $dependency
  * @return boolean
  */
 protected function isDownloadableVersionCompatible(\TYPO3\CMS\Extensionmanager\Domain\Model\Dependency $dependency)
 {
     $versions = $this->getLowestAndHighestIntegerVersions($dependency);
     return count($this->extensionRepository->countByVersionRangeAndExtensionKey($dependency->getIdentifier(), $versions['lowestIntegerVersion'], $versions['highestIntegerVersion'])) > 0;
 }