![]() |
TYPO3
7.6
|
Public Member Functions | |
injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) | |
injectExtensionRepository (\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository) | |
injectListUtility (\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility) | |
injectEmConfUtility (\TYPO3\CMS\Extensionmanager\Utility\EmConfUtility $emConfUtility) | |
injectManagementService (\TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService) | |
setLocalExtensionStorage ($localExtensionStorage) | |
setSkipDependencyCheck ($skipDependencyCheck) | |
hasDependencyErrors () | |
getDependencyErrors () | |
findInstalledExtensionsThatDependOnMe ($extensionKey) | |
Protected Member Functions | |
setAvailableExtensions () | |
checkTypo3Dependency (Dependency $dependency) | |
checkPhpDependency (Dependency $dependency) | |
checkExtensionDependency (Dependency $dependency) | |
getExtensionFromRepository ($extensionKey, Dependency $dependency) | |
getExtensionFromInExtensionRepository ($extensionKey) | |
getExtensionFromTer ($extensionKey, Dependency $dependency) | |
isDependentExtensionLoaded ($extensionKey) | |
isLoadedVersionCompatible (Dependency $dependency) | |
isVersionCompatible ($version, Dependency $dependency) | |
isDependentExtensionAvailable ($extensionKey) | |
isAvailableVersionCompatible (Dependency $dependency) | |
isExtensionDownloadableFromTer ($extensionKey) | |
isDownloadableVersionCompatible (Dependency $dependency) | |
getLatestCompatibleExtensionByIntegerVersionDependency (Dependency $dependency) | |
getLowestAndHighestIntegerVersions (Dependency $dependency) | |
Protected Attributes | |
$objectManager | |
$extensionRepository | |
$listUtility | |
$emConfUtility | |
$managementService | |
$availableExtensions = array() | |
$localExtensionStorage = '' | |
$dependencyErrors = array() | |
$skipDependencyCheck = false | |
Utility for dealing with dependencies
Definition at line 26 of file DependencyUtility.php.
|
protected |
Main controlling function for checking dependencies Dependency check is done in the following way:
Dependency | $dependency |
Exception\MissingVersionDependencyException |
Definition at line 279 of file DependencyUtility.php.
References DependencyUtility\$dependencyErrors, DependencyUtility\getExtensionFromRepository(), Dependency\getHighestVersion(), Dependency\getIdentifier(), Dependency\getLowestVersion(), Extension\getVersion(), DependencyUtility\isAvailableVersionCompatible(), DependencyUtility\isDependentExtensionAvailable(), DependencyUtility\isDependentExtensionLoaded(), and DependencyUtility\isLoadedVersionCompatible().
|
protected |
Returns true if current php version fulfills extension requirements
Dependency | $dependency |
Exception\UnresolvedPhpDependencyException |
Definition at line 242 of file DependencyUtility.php.
References Dependency\getHighestVersion(), Dependency\getIdentifier(), and Dependency\getLowestVersion().
|
protected |
Returns true if current TYPO3 version fulfills extension requirements
Dependency | $dependency |
Exception\UnresolvedTypo3DependencyException |
Definition at line 210 of file DependencyUtility.php.
References Dependency\getHighestVersion(), Dependency\getIdentifier(), Dependency\getLowestVersion(), and VersionNumberUtility\getNumericTypo3Version().
findInstalledExtensionsThatDependOnMe | ( | $extensionKey | ) |
getDependencyErrors | ( | ) |
Return the dependency errors
Definition at line 198 of file DependencyUtility.php.
References DependencyUtility\$dependencyErrors.
|
protected |
Gets an extension from the in extension repository (the local extension storage)
string | $extensionKey |
Definition at line 373 of file DependencyUtility.php.
Referenced by DependencyUtility\getExtensionFromRepository().
|
protected |
Get an extension from a repository (might be in the extension itself or the TER)
string | $extensionKey | |
Dependency | $dependency |
Exception\UnresolvedDependencyException |
Definition at line 359 of file DependencyUtility.php.
References DependencyUtility\getExtensionFromInExtensionRepository(), and DependencyUtility\getExtensionFromTer().
Referenced by DependencyUtility\checkExtensionDependency().
|
protected |
Handles checks to find a compatible extension version from TER to fulfill given dependency
string | $extensionKey | |
Dependency | $dependency |
Exception\UnresolvedDependencyException |
Definition at line 394 of file DependencyUtility.php.
References Dependency\getIdentifier(), DependencyUtility\getLatestCompatibleExtensionByIntegerVersionDependency(), DependencyUtility\isDependentExtensionLoaded(), DependencyUtility\isDownloadableVersionCompatible(), and DependencyUtility\isExtensionDownloadableFromTer().
Referenced by DependencyUtility\getExtensionFromRepository().
|
protected |
Get the latest compatible version of an extension that fulfills the given dependency from TER
Dependency | $dependency |
Definition at line 537 of file DependencyUtility.php.
References Dependency\getIdentifier(), and DependencyUtility\getLowestAndHighestIntegerVersions().
Referenced by DependencyUtility\getExtensionFromTer().
|
protected |
Return array of lowest and highest version of dependency as integer
Dependency | $dependency |
Definition at line 554 of file DependencyUtility.php.
References VersionNumberUtility\convertVersionNumberToInteger(), Dependency\getHighestVersion(), and Dependency\getLowestVersion().
Referenced by DependencyUtility\getLatestCompatibleExtensionByIntegerVersionDependency(), and DependencyUtility\isDownloadableVersionCompatible().
hasDependencyErrors | ( | ) |
Returns TRUE if a dependency error was found
Definition at line 188 of file DependencyUtility.php.
injectEmConfUtility | ( | \TYPO3\CMS\Extensionmanager\Utility\EmConfUtility | $emConfUtility | ) |
\TYPO3\CMS\Extensionmanager\Utility\EmConfUtility | $emConfUtility |
Definition at line 100 of file DependencyUtility.php.
References DependencyUtility\$emConfUtility.
injectExtensionRepository | ( | \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository | $extensionRepository | ) |
\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository | $extensionRepository |
Definition at line 84 of file DependencyUtility.php.
References DependencyUtility\$extensionRepository.
injectListUtility | ( | \TYPO3\CMS\Extensionmanager\Utility\ListUtility | $listUtility | ) |
\TYPO3\CMS\Extensionmanager\Utility\ListUtility | $listUtility |
Definition at line 92 of file DependencyUtility.php.
References DependencyUtility\$listUtility.
injectManagementService | ( | \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService | $managementService | ) |
\TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService | $managementService |
Definition at line 108 of file DependencyUtility.php.
References DependencyUtility\$managementService.
injectObjectManager | ( | \TYPO3\CMS\Extbase\Object\ObjectManager | $objectManager | ) |
\TYPO3\CMS\Extbase\Object\ObjectManager | $objectManager |
Definition at line 76 of file DependencyUtility.php.
References DependencyUtility\$objectManager.
|
protected |
Checks whether the available version is compatible
Dependency | $dependency |
Definition at line 497 of file DependencyUtility.php.
References Dependency\getIdentifier(), DependencyUtility\isVersionCompatible(), and DependencyUtility\setAvailableExtensions().
Referenced by DependencyUtility\checkExtensionDependency().
|
protected |
Checks whether the needed extension is available (not necessarily installed, but present in system)
string | $extensionKey |
Definition at line 485 of file DependencyUtility.php.
References DependencyUtility\setAvailableExtensions().
Referenced by DependencyUtility\checkExtensionDependency().
|
protected |
string | $extensionKey |
Definition at line 447 of file DependencyUtility.php.
References ExtensionManagementUtility\isLoaded().
Referenced by DependencyUtility\checkExtensionDependency(), and DependencyUtility\getExtensionFromTer().
|
protected |
Checks whether a compatible version of the extension exists in TER
Dependency | $dependency |
Definition at line 521 of file DependencyUtility.php.
References Dependency\getIdentifier(), and DependencyUtility\getLowestAndHighestIntegerVersions().
Referenced by DependencyUtility\getExtensionFromTer().
|
protected |
Checks whether a ter extension with $extensionKey exists
string | $extensionKey |
Definition at line 510 of file DependencyUtility.php.
Referenced by DependencyUtility\getExtensionFromTer().
|
protected |
Dependency | $dependency |
Definition at line 456 of file DependencyUtility.php.
References ExtensionManagementUtility\getExtensionVersion(), Dependency\getIdentifier(), and DependencyUtility\isVersionCompatible().
Referenced by DependencyUtility\checkExtensionDependency().
|
protected |
string | $version | |
Dependency | $dependency |
Definition at line 467 of file DependencyUtility.php.
References Dependency\getHighestVersion(), and Dependency\getLowestVersion().
Referenced by DependencyUtility\isAvailableVersionCompatible(), and DependencyUtility\isLoadedVersionCompatible().
|
protected |
Setter for available extensions gets available extensions from list utility if not already done
Definition at line 128 of file DependencyUtility.php.
Referenced by DependencyUtility\isAvailableVersionCompatible(), and DependencyUtility\isDependentExtensionAvailable().
setLocalExtensionStorage | ( | $localExtensionStorage | ) |
string | $localExtensionStorage |
Definition at line 117 of file DependencyUtility.php.
References DependencyUtility\$localExtensionStorage.
setSkipDependencyCheck | ( | $skipDependencyCheck | ) |
bool | $skipDependencyCheck |
Definition at line 137 of file DependencyUtility.php.
References DependencyUtility\$skipDependencyCheck.
|
protected |
Definition at line 56 of file DependencyUtility.php.
|
protected |
Definition at line 66 of file DependencyUtility.php.
Referenced by DependencyUtility\checkExtensionDependency(), and DependencyUtility\getDependencyErrors().
|
protected |
Definition at line 46 of file DependencyUtility.php.
Referenced by DependencyUtility\injectEmConfUtility().
|
protected |
Definition at line 36 of file DependencyUtility.php.
Referenced by DependencyUtility\injectExtensionRepository().
|
protected |
Definition at line 41 of file DependencyUtility.php.
Referenced by DependencyUtility\injectListUtility().
|
protected |
Definition at line 61 of file DependencyUtility.php.
Referenced by DependencyUtility\setLocalExtensionStorage().
|
protected |
Definition at line 51 of file DependencyUtility.php.
Referenced by DependencyUtility\injectManagementService().
|
protected |
Definition at line 31 of file DependencyUtility.php.
Referenced by DependencyUtility\injectObjectManager().
|
protected |
Definition at line 71 of file DependencyUtility.php.
Referenced by DependencyUtility\setSkipDependencyCheck().