Composer API
Class

Composer\Downloader\RarDownloader

class RarDownloader extends ArchiveDownloader

RAR archive downloader.

Based on previous work by Jordi Boggiano ({see ZipDownloader}).

Methods

__construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null)

Constructor.

string getInstallationSource()

Returns installation source (either source or dist).

from FileDownloader
download(PackageInterface $package, string $path)

Downloads specific package into specific folder.

from ArchiveDownloader
DownloaderInterface setOutputProgress(bool $outputProgress)

Sets whether to output download progress information or not

from FileDownloader
update(PackageInterface $initial, PackageInterface $target, string $path)

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

from FileDownloader
remove(PackageInterface $package, string $path)

Removes specific package from specific folder.

from FileDownloader

Details

at line 36
public __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null)

Constructor.

Parameters

IOInterface $io The IO instance
Config $config The config
EventDispatcher $eventDispatcher The event dispatcher
Cache $cache Optional cache instance
ProcessExecutor $process
RemoteFilesystem $rfs The remote filesystem

in FileDownloader at line 72
public string getInstallationSource()

Returns installation source (either source or dist).

Return Value

string "source" or "dist"

in ArchiveDownloader at line 31
public download(PackageInterface $package, string $path)

Downloads specific package into specific folder.

Parameters

PackageInterface $package package instance
string $path download path

in FileDownloader at line 180
public DownloaderInterface setOutputProgress(bool $outputProgress)

Sets whether to output download progress information or not

Parameters

bool $outputProgress

Return Value

DownloaderInterface

in FileDownloader at line 198
public update(PackageInterface $initial, PackageInterface $target, string $path)

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

Parameters

PackageInterface $initial initial package
PackageInterface $target updated package
string $path download path

in FileDownloader at line 207
public remove(PackageInterface $package, string $path)

Removes specific package from specific folder.

Parameters

PackageInterface $package package instance
string $path download path