$io
$io :
Base downloader for archives
download(\Composer\Package\PackageInterface $package, string $path, $output = true)
Downloads specific package into specific folder.
\Composer\Package\PackageInterface | $package | package instance |
string | $path | download path |
$output |
__construct(\Composer\IO\IOInterface $io, \Composer\Config $config, \Composer\EventDispatcher\EventDispatcher $eventDispatcher = null, \Composer\Cache $cache = null, \Composer\Util\ProcessExecutor $process = null, \Composer\Util\RemoteFilesystem $rfs = null)
\Composer\IO\IOInterface | $io | |
\Composer\Config | $config | |
\Composer\EventDispatcher\EventDispatcher | $eventDispatcher | |
\Composer\Cache | $cache | |
\Composer\Util\ProcessExecutor | $process | |
\Composer\Util\RemoteFilesystem | $rfs |
setOutputProgress(boolean $outputProgress) : \Composer\Downloader\DownloaderInterface
Sets whether to output download progress information or not
boolean | $outputProgress |
update(\Composer\Package\PackageInterface $initial, \Composer\Package\PackageInterface $target, string $path)
Updates specific package in specific folder from initial to target version.
\Composer\Package\PackageInterface | $initial | initial package |
\Composer\Package\PackageInterface | $target | updated package |
string | $path | download path |
remove(\Composer\Package\PackageInterface $package, string $path, $output = true)
Removes specific package from specific folder.
\Composer\Package\PackageInterface | $package | package instance |
string | $path | download path |
$output |
getLocalChanges(\Composer\Package\PackageInterface $package, $targetDir) : string|null
Checks for changes to the local copy
\Composer\Package\PackageInterface | $package | package instance |
$targetDir |
changes or null
getFileName(\Composer\Package\PackageInterface $package, string $path) : string
Gets file name for specific package
\Composer\Package\PackageInterface | $package | package instance |
string | $path | download path |
file name
doDownload(\Composer\Package\PackageInterface $package, $path, $url)
\Composer\Package\PackageInterface | $package | |
$path | ||
$url |
clearLastCacheWrite(\Composer\Package\PackageInterface $package)
\Composer\Package\PackageInterface | $package |
processUrl(\Composer\Package\PackageInterface $package, string $url) : string
Process the download url
\Composer\Package\PackageInterface | $package | package the url is coming from |
string | $url | download url |
If any problem with the url
url
extractWithSystemUnzip(string $file, string $path, boolean $isLastChance) : boolean
extract $file to $path with "unzip" command
string | $file | File to extract |
string | $path | Path where to extract file |
boolean | $isLastChance | If true it is called as a fallback and should throw an exception |
Success status
extractWithZipArchive(string $file, string $path, boolean $isLastChance) : boolean
extract $file to $path with ZipArchive
string | $file | File to extract |
string | $path | Path where to extract file |
boolean | $isLastChance | If true it is called as a fallback and should throw an exception |
Success status
getCacheKey(\Composer\Package\PackageInterface $package, $processedUrl)
\Composer\Package\PackageInterface | $package | |
$processedUrl |