\Composer\DownloaderDownloaderInterface

Downloader interface.

Summary

Methods
Constants
getInstallationSource()
download()
update()
remove()
setOutputProgress()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getInstallationSource()

getInstallationSource() : string

Returns installation source (either source or dist).

Returns

string —

"source" or "dist"

download()

download(\Composer\Package\PackageInterface  $package, string  $path) 

Downloads specific package into specific folder.

Parameters

\Composer\Package\PackageInterface $package

package instance

string $path

download path

update()

update(\Composer\Package\PackageInterface  $initial, \Composer\Package\PackageInterface  $target, string  $path) 

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

Parameters

\Composer\Package\PackageInterface $initial

initial package

\Composer\Package\PackageInterface $target

updated package

string $path

download path

remove()

remove(\Composer\Package\PackageInterface  $package, string  $path) 

Removes specific package from specific folder.

Parameters

\Composer\Package\PackageInterface $package

package instance

string $path

download path

setOutputProgress()

setOutputProgress(boolean  $outputProgress) : \Composer\Downloader\DownloaderInterface

Sets whether to output download progress information or not

Parameters

boolean $outputProgress

Returns

\Composer\Downloader\DownloaderInterface