ExtensionDownloaderRemoteInterface

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

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

Table of Contents

Methods

downloadExtension()  : void
Downloads a remote package / extension on the TYPO3 installation without installing it.
getIdentifier()  : string
Returns the remote identifier

Methods

downloadExtension()

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

public downloadExtension(string $extensionKey, string $version, FileHandlingUtility $fileHandler[, string|null $verificationHash = null ][, string $pathType = 'Local' ]) : void
Parameters
$extensionKey : string

a lower-cased extension key

$version : string

the version to be fetched e.g. 1.5.2

$fileHandler : FileHandlingUtility

the file handler which deals with unpacking the files

$verificationHash : string|null = null

if given the file is verified (depending on the remote, the verification hash can be anything)

$pathType : string = 'Local'

either "Local", "System" or "Global"

Tags
throws
DownloadFailedException

when a remote file could not be loaded.

throws
VerificationFailedException

when the remote file could not be unpacked or validated.

getIdentifier()

Returns the remote identifier

public getIdentifier() : string
Return values
string

        
On this page

Search results