FallbackPackageResolver

readonly class \TYPO3\CMS\Extensionmanager\Domain\FallbackPackageResolver

Implements
PackageResolverInterface

Asks a resolver that reads a remote live, and falls back to one that reads the imported list whenever the remote cannot answer, does not know the package, or sends a version constraint that cannot be converted.

Unlike browsing, resolving falls back on an empty answer as well: a remote document lists a limited number of releases, and a version missing there may well sit in the imported list. Nothing gets mixed - each question is answered by one source. In offline mode the remote is not asked at all.

Table of Contents

Interfaces

PackageResolverInterface
Pins down which exact package a download, an update or a dependency means.

Methods

__construct()  : mixed
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|null

findOneByExtensionKeyAndVersion()

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|null
On this page