Composer API
Class

Composer\Downloader\PerforceDownloader

class PerforceDownloader extends VcsDownloader

Methods

__construct(IOInterface $io, Config $config, ProcessExecutor $process = null, Filesystem $fs = null)

from VcsDownloader
string getInstallationSource()

Returns installation source (either source or dist).

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

Downloads specific package into specific folder.

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

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

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

Removes specific package from specific folder.

from VcsDownloader
DownloaderInterface setOutputProgress(bool $outputProgress)

Sets whether to output download progress information or not

from VcsDownloader
string|null getVcsReference(PackageInterface $package, string $path)

Gets the VCS Reference for the package at path

from VcsDownloader
doDownload(PackageInterface $package, $path, $url)

{@inheritDoc}

initPerforce(PackageInterface $package, $path, $url)

doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url)

{@inheritDoc}

string|null getLocalChanges(PackageInterface $package, string $path)

Checks for changes to the local copy

setPerforce($perforce)

Details

in VcsDownloader at line 38
public __construct(IOInterface $io, Config $config, ProcessExecutor $process = null, Filesystem $fs = null)

Parameters

IOInterface $io
Config $config
ProcessExecutor $process
Filesystem $fs

in VcsDownloader at line 49
public string getInstallationSource()

Returns installation source (either source or dist).

Return Value

string "source" or "dist"

in VcsDownloader at line 57
public download(PackageInterface $package, string $path)

Downloads specific package into specific folder.

Parameters

PackageInterface $package package instance
string $path download path

in VcsDownloader at line 112
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 VcsDownloader at line 195
public remove(PackageInterface $package, string $path)

Removes specific package from specific folder.

Parameters

PackageInterface $package package instance
string $path download path

in VcsDownloader at line 208
public DownloaderInterface setOutputProgress(bool $outputProgress)

Sets whether to output download progress information or not

Parameters

bool $outputProgress

Return Value

DownloaderInterface

in VcsDownloader at line 216
public string|null getVcsReference(PackageInterface $package, string $path)

Gets the VCS Reference for the package at path

Parameters

PackageInterface $package package directory
string $path package directory

Return Value

string|null reference or null

at line 30
public doDownload(PackageInterface $package, $path, $url)

{@inheritDoc}

Parameters

PackageInterface $package
$path
$url

at line 55
public initPerforce(PackageInterface $package, $path, $url)

Parameters

PackageInterface $package
$path
$url

at line 79
public doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url)

{@inheritDoc}

Parameters

PackageInterface $initial
PackageInterface $target
$path
$url

at line 87
public string|null getLocalChanges(PackageInterface $package, string $path)

Checks for changes to the local copy

Parameters

PackageInterface $package package instance
string $path package directory

Return Value

string|null changes or null

at line 102
public setPerforce($perforce)

Parameters

$perforce