DownloaderInterface
in
Downloader interface.
Tags
Table of Contents
- download() : mixed
- Downloads specific package into specific folder.
- getInstallationSource() : string
- Returns installation source (either source or dist).
- remove() : mixed
- Removes specific package from specific folder.
- setOutputProgress() : DownloaderInterface
- Sets whether to output download progress information or not
- update() : mixed
- Updates specific package in specific folder from initial to target version.
Methods
download()
Downloads specific package into specific folder.
public
download(PackageInterface $package, string $path) : mixed
Parameters
- $package : PackageInterface
-
package instance
- $path : string
-
download path
Return values
mixed —getInstallationSource()
Returns installation source (either source or dist).
public
getInstallationSource() : string
Return values
string —"source" or "dist"
remove()
Removes specific package from specific folder.
public
remove(PackageInterface $package, string $path) : mixed
Parameters
- $package : PackageInterface
-
package instance
- $path : string
-
download path
Return values
mixed —setOutputProgress()
Sets whether to output download progress information or not
public
setOutputProgress(bool $outputProgress) : DownloaderInterface
Parameters
- $outputProgress : bool
Return values
DownloaderInterface —update()
Updates specific package in specific folder from initial to target version.
public
update(PackageInterface $initial, PackageInterface $target, string $path) : mixed
Parameters
- $initial : PackageInterface
-
initial package
- $target : PackageInterface
-
updated package
- $path : string
-
download path