‪TYPO3CMS  ‪main
TYPO3\CMS\Extensionmanager\Remote\ExtensionDownloaderRemoteInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Remote\ExtensionDownloaderRemoteInterface:
TYPO3\CMS\Extensionmanager\Remote\TerExtensionRemote

Public Member Functions

 getIdentifier ()
 
 downloadExtension (string $extensionKey, string $version, FileHandlingUtility $fileHandler, string $verificationHash=null, string $pathType='Local')
 

Detailed Description

API for downloading packages from a remote server and validating the downloaded results.

Please note that this API might be modified in the future.

Definition at line 27 of file ExtensionDownloaderRemoteInterface.php.

Member Function Documentation

◆ downloadExtension()

TYPO3\CMS\Extensionmanager\Remote\ExtensionDownloaderRemoteInterface::downloadExtension ( string  $extensionKey,
string  $version,
FileHandlingUtility  $fileHandler,
string  $verificationHash = null,
string  $pathType = 'Local' 
)

Downloads a remote package / extension on the TYPO3 installation without installing it.

Parameters
string$extensionKey‪a lower-cased extension key
string$version‪the version to be fetched e.g. 1.5.2
FileHandlingUtility$fileHandler‪the file handler which deals with unpacking the files
string | null$verificationHash‪if given the file is verified (depending on the remote, the verification hash can be anything)
string$pathType‪either "Local", "System" or "Global"
Exceptions
DownloadFailedException‪when a remote file could not be loaded.
VerificationFailedException‪when the remote file could not be unpacked or validated.

Implemented in TYPO3\CMS\Extensionmanager\Remote\TerExtensionRemote.

◆ getIdentifier()

TYPO3\CMS\Extensionmanager\Remote\ExtensionDownloaderRemoteInterface::getIdentifier ( )