PackageResolverInterface
interface \
Pins down which exact package a download, an update or a dependency means.
This is the counterpart to ExtensionCatalogueInterface: browsing shows what exists, resolving answers "and which version of it do I install now". The two are kept apart because their callers are - the list views never resolve, and the download and dependency code never browses.
An implementation reading a remote live throws ApiRequestFailedException from any method when the remote could not answer at all, and UnsupportedVersionConstraintException when it sent a requirement that cannot be converted.
Internal
This interface is a specific ExtensionManager implementation and is not part of the Public TYPO3 API.
Table of Contents
Methods
- findByVersionRangeAndExtensionKeyOrderedByVersion() : Extension[]
- The versions of an extension within a range, highest version first. This is what turns a dependency constraint into something installable.
- findHighestAvailableVersion() : Extension|null
- The newest version offered for an extension, or null if none is.
- findOneByExtensionKeyAndVersion() : Extension|null
- A single version of an extension when the remote it came from is unknown, or null if no remote offers it.
- getByPackageIdentifier() : Extension
- The package a full remote identity addresses.
Methods
findByVersionRangeAndExtensionKeyOrderedByVersion()
The versions of an extension within a range, highest version first. This is what turns a dependency constraint into something installable.
public
findByVersionRangeAndExtensionKeyOrderedByVersion(string $extensionKey[, int $lowestVersion = 0 ][, int $highestVersion = 0 ][, bool $includeCurrentVersion = true ]) : Extension[]
Parameters
- $extensionKey : string
- $lowestVersion : int = 0
- $highestVersion : int = 0
- $includeCurrentVersion : bool = true
Return values
Extension[]findHighestAvailableVersion()
The newest version offered for an extension, or null if none is.
public
findHighestAvailableVersion(string $extensionKey) : Extension|null
Parameters
- $extensionKey : string
Return values
Extension|nullfindOneByExtensionKeyAndVersion()
A single version of an extension when the remote it came from is unknown, or null if no remote offers it.
public
findOneByExtensionKeyAndVersion(string $extensionKey, string $version) : Extension|null
Parameters
- $extensionKey : string
- $version : string
-
(example: 4.3.10)
Return values
Extension|nullgetByPackageIdentifier()
The package a full remote identity addresses.
public
getByPackageIdentifier(PackageIdentifier $packageIdentifier) : Extension
Parameters
- $packageIdentifier : PackageIdentifier