XzDownloader
class XzDownloader extends ArchiveDownloader (View source)
Xz archive downloader.
Properties
protected | $io | from FileDownloader | |
protected | $config | from FileDownloader | |
protected | $rfs | from FileDownloader | |
protected | $filesystem | from FileDownloader | |
protected | $cache | from FileDownloader | |
protected | $outputProgress | from FileDownloader | |
protected | $process |
Methods
Constructor.
Returns installation source (either source or dist).
Downloads specific package into specific folder.
Sets whether to output download progress information or not
Updates specific package in specific folder from initial to target version.
Removes specific package from specific folder.
Extract file to directory
Details
at line 33
__construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null)
Constructor.
in FileDownloader at line 73
string
getInstallationSource()
Returns installation source (either source or dist).
in ArchiveDownloader at line 31
download(PackageInterface $package, string $path, $output = true)
Downloads specific package into specific folder.
in FileDownloader at line 118
protected
doDownload(PackageInterface $package, $path, $url)
in FileDownloader at line 193
DownloaderInterface
setOutputProgress(bool $outputProgress)
Sets whether to output download progress information or not
in FileDownloader at line 200
protected
clearLastCacheWrite(PackageInterface $package)
in FileDownloader at line 211
update(PackageInterface $initial, PackageInterface $target, string $path)
Updates specific package in specific folder from initial to target version.
in FileDownloader at line 228
remove(PackageInterface $package, string $path, $output = true)
Removes specific package from specific folder.
at line 56
protected string
getFileName(PackageInterface $package, string $path)
Gets file name for specific package
in FileDownloader at line 258
protected string
processUrl(PackageInterface $package, string $url)
Process the download url
at line 40
protected
extract(string $file, string $path)
Extract file to directory