Composer API
Class

Composer\Downloader\TarDownloader

class TarDownloader extends ArchiveDownloader

Downloader for tar files: tar, tar.gz or tar.bz2

Methods

__construct(IOInterface $io, RemoteFilesystem $rfs = null, Filesystem $filesystem = null)

Constructor.

from FileDownloader
string getInstallationSource()

Returns installation source (either source or dist).

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

Downloads specific package into specific folder.

from ArchiveDownloader
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

in FileDownloader at line 38
public __construct(IOInterface $io, RemoteFilesystem $rfs = null, Filesystem $filesystem = null)

Constructor.

Parameters

IOInterface $io
RemoteFilesystem $rfs
Filesystem $filesystem

in FileDownloader at line 48
public string getInstallationSource()

Returns installation source (either source or dist).

Return Value

string "source" or "dist"

in ArchiveDownloader at line 29
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 93
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 102
public remove(PackageInterface $package, string $path)

Removes specific package from specific folder.

Parameters

PackageInterface $package package instance
string $path download path