$io
$io :
Downloader for phar files
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\RemoteFilesystem $rfs = null, \Composer\Util\Filesystem $filesystem = null)
Constructor.
\Composer\IO\IOInterface | $io | The IO instance |
\Composer\Config | $config | The config |
\Composer\EventDispatcher\EventDispatcher | $eventDispatcher | The event dispatcher |
\Composer\Cache | $cache | Optional cache instance |
\Composer\Util\RemoteFilesystem | $rfs | The remote filesystem |
\Composer\Util\Filesystem | $filesystem | The filesystem |
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
getCacheKey(\Composer\Package\PackageInterface $package, $processedUrl)
\Composer\Package\PackageInterface | $package | |
$processedUrl |