$io
$io : \Composer\IO\IOInterface
$io : \Composer\IO\IOInterface
$config : \Composer\Config
$process : \Composer\Util\ProcessExecutor
$filesystem : \Composer\Util\Filesystem
$perforce : \Composer\Util\Perforce
__construct(\Composer\IO\IOInterface $io, \Composer\Config $config, \Composer\Util\ProcessExecutor $process = null, \Composer\Util\Filesystem $fs = null)
\Composer\IO\IOInterface | $io | |
\Composer\Config | $config | |
\Composer\Util\ProcessExecutor | $process | |
\Composer\Util\Filesystem | $fs |
download(\Composer\Package\PackageInterface $package, string $path)
Downloads specific package into specific folder.
\Composer\Package\PackageInterface | $package | package instance |
string | $path | download path |
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)
Removes specific package from specific folder.
\Composer\Package\PackageInterface | $package | package instance |
string | $path | download path |
setOutputProgress(boolean $outputProgress) : \Composer\Downloader\DownloaderInterface
Download progress information is not available for all VCS downloaders.
boolean | $outputProgress |
getVcsReference(\Composer\Package\PackageInterface $package, string $path) : string|null
Gets the VCS Reference for the package at path
\Composer\Package\PackageInterface | $package | package directory |
string | $path | package directory |
reference or null
doDownload(\Composer\Package\PackageInterface $package, string $path, string $url)
Downloads specific package into specific folder.
\Composer\Package\PackageInterface | $package | package instance |
string | $path | download path |
string | $url | package url |
doUpdate(\Composer\Package\PackageInterface $initial, \Composer\Package\PackageInterface $target, string $path, string $url)
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 |
string | $url | package url |
initPerforce(\Composer\Package\PackageInterface $package, $path, $url)
\Composer\Package\PackageInterface | $package | |
$path | ||
$url |
getLocalChanges(\Composer\Package\PackageInterface $package, $path)
{@inheritDoc}
\Composer\Package\PackageInterface | $package | |
$path |
cleanChanges(\Composer\Package\PackageInterface $package, string $path, boolean $update)
Prompt the user to check if changes should be stashed/removed or the operation aborted
\Composer\Package\PackageInterface | $package | |
string | $path | |
boolean | $update | if true (update) the changes can be stashed and reapplied after an update, if false (remove) the changes should be assumed to be lost if the operation is not aborted |
in case the operation must be aborted
getRepoConfig(\Composer\Repository\VcsRepository $repository)
\Composer\Repository\VcsRepository | $repository |