Composer API
Interface

Composer\Downloader\DownloaderInterface

interface DownloaderInterface

Downloader interface.

Methods

string getInstallationSource()

Returns installation source (either source or dist).

download(PackageInterface $package, string $path)

Downloads specific package into specific folder.

update(PackageInterface $initial, PackageInterface $target, string $path)

Updates specific package in specific folder from initial to target version.

remove(PackageInterface $package, string $path)

Removes specific package from specific folder.

DownloaderInterface setOutputProgress(bool $outputProgress)

Sets whether to output download progress information or not

Details

at line 30
public string getInstallationSource()

Returns installation source (either source or dist).

Return Value

string "source" or "dist"

at line 38
public download(PackageInterface $package, string $path)

Downloads specific package into specific folder.

Parameters

PackageInterface $package package instance
string $path download path

at line 47
public update(PackageInterface $initial, PackageInterface $target, string $path)

Updates specific package in specific folder from initial to target version.

Parameters

PackageInterface $initial initial package
PackageInterface $target updated package
string $path download path

at line 55
public remove(PackageInterface $package, string $path)

Removes specific package from specific folder.

Parameters

PackageInterface $package package instance
string $path download path

at line 63
public DownloaderInterface setOutputProgress(bool $outputProgress)

Sets whether to output download progress information or not

Parameters

bool $outputProgress

Return Value

DownloaderInterface