‪TYPO3CMS  ‪main
TYPO3\CMS\Extensionmanager\Utility\DependencyUtility Class Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Utility\DependencyUtility:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 injectExtensionRepository (ExtensionRepository $extensionRepository)
 
 injectListUtility (ListUtility $listUtility)
 
 injectEmConfUtility (EmConfUtility $emConfUtility)
 
 injectManagementService (ExtensionManagementService $managementService)
 
 setSkipDependencyCheck ($skipDependencyCheck)
 
 checkDependencies (Extension $extension)
 
bool hasDependencyErrors ()
 
 getDependencyErrors ()
 

Protected Member Functions

 setAvailableExtensions ()
 
 checkTypo3Dependency (Dependency $dependency, string $version)
 
 checkPhpDependency (Dependency $dependency, string $version)
 
bool checkExtensionDependency (Dependency $dependency)
 
 downloadExtensionFromRemote (string $extensionKey, Dependency $dependency)
 
bool isDependentExtensionLoaded ($extensionKey)
 
 isLoadedVersionCompatible (Dependency $dependency)
 
 isDependentExtensionAvailable (string $extensionKey)
 
 isAvailableVersionCompatible (Dependency $dependency)
 
 isExtensionDownloadableFromRemote (string $extensionKey)
 
 isDownloadableVersionCompatible (Dependency $dependency)
 
 getCompatibleExtension (iterable $extensions)
 
 getLatestCompatibleExtensionByDependency (Dependency $dependency)
 

Protected Attributes

ExtensionRepository $extensionRepository
 
ListUtility $listUtility
 
EmConfUtility $emConfUtility
 
ExtensionManagementService $managementService
 
array $availableExtensions = array( )
 
array $dependencyErrors = array( )
 
bool $skipDependencyCheck = false
 

Detailed Description

Utility for dealing with dependencies

This class is a specific ExtensionManager implementation and is not part of the Public TYPO3 API.

Definition at line 36 of file DependencyUtility.php.

Member Function Documentation

◆ checkDependencies()

◆ checkExtensionDependency()

◆ checkPhpDependency()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::checkPhpDependency ( Dependency  $dependency,
string  $version 
)
protected

◆ checkTypo3Dependency()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::checkTypo3Dependency ( Dependency  $dependency,
string  $version 
)
protected

◆ downloadExtensionFromRemote()

◆ getCompatibleExtension()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::getCompatibleExtension ( iterable  $extensions)
protected

Get the latest compatible version of an extension that's compatible with the current core and PHP version.

Definition at line 418 of file DependencyUtility.php.

References TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\checkDependencies().

Referenced by TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\getLatestCompatibleExtensionByDependency().

◆ getDependencyErrors()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::getDependencyErrors ( )

Return the dependency errors

Definition at line 157 of file DependencyUtility.php.

References TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\$dependencyErrors.

◆ getLatestCompatibleExtensionByDependency()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::getLatestCompatibleExtensionByDependency ( Dependency  $dependency)
protected

◆ hasDependencyErrors()

bool TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::hasDependencyErrors ( )

Returns TRUE if a dependency error was found

Returns
‪bool

Definition at line 149 of file DependencyUtility.php.

◆ injectEmConfUtility()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::injectEmConfUtility ( EmConfUtility  $emConfUtility)

◆ injectExtensionRepository()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::injectExtensionRepository ( ExtensionRepository  $extensionRepository)

◆ injectListUtility()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::injectListUtility ( ListUtility  $listUtility)

◆ injectManagementService()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::injectManagementService ( ExtensionManagementService  $managementService)

◆ isAvailableVersionCompatible()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::isAvailableVersionCompatible ( Dependency  $dependency)
protected

◆ isDependentExtensionAvailable()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::isDependentExtensionAvailable ( string  $extensionKey)
protected

Checks whether the needed extension is available (not necessarily installed, but present in system)

Definition at line 374 of file DependencyUtility.php.

References TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\setAvailableExtensions().

Referenced by TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\checkExtensionDependency().

◆ isDependentExtensionLoaded()

bool TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::isDependentExtensionLoaded (   $extensionKey)
protected

◆ isDownloadableVersionCompatible()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::isDownloadableVersionCompatible ( Dependency  $dependency)
protected

◆ isExtensionDownloadableFromRemote()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::isExtensionDownloadableFromRemote ( string  $extensionKey)
protected

Checks whether a ter extension with $extensionKey exists

Definition at line 396 of file DependencyUtility.php.

Referenced by TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\downloadExtensionFromRemote().

◆ isLoadedVersionCompatible()

◆ setAvailableExtensions()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::setAvailableExtensions ( )
protected

Setter for available extensions gets available extensions from list utility if not already done

Definition at line 90 of file DependencyUtility.php.

Referenced by TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\isAvailableVersionCompatible(), and TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\isDependentExtensionAvailable().

◆ setSkipDependencyCheck()

TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::setSkipDependencyCheck (   $skipDependencyCheck)
Parameters
bool$skipDependencyCheck

Definition at line 98 of file DependencyUtility.php.

References TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\$skipDependencyCheck.

Member Data Documentation

◆ $availableExtensions

array TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::$availableExtensions = array( )
protected

Definition at line 56 of file DependencyUtility.php.

◆ $dependencyErrors

array TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::$dependencyErrors = array( )
protected

◆ $emConfUtility

EmConfUtility TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::$emConfUtility
protected

◆ $extensionRepository

ExtensionRepository TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::$extensionRepository
protected

◆ $listUtility

ListUtility TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::$listUtility
protected

◆ $managementService

ExtensionManagementService TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::$managementService
protected

◆ $skipDependencyCheck

bool TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::$skipDependencyCheck = false
protected