$io
$io : \Composer\IO\IOInterface
$io : \Composer\IO\IOInterface
$config : \Composer\Config
$process : \Composer\Util\ProcessExecutor
$filesystem : \Composer\Util\Filesystem
__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 |
getLocalChanges(\Composer\Package\PackageInterface $package, $path)
{@inheritDoc}
\Composer\Package\PackageInterface | $package | |
$path |
getUnpushedChanges(\Composer\Package\PackageInterface $package, string $path) : string|null
Checks for unpushed changes to a current branch
\Composer\Package\PackageInterface | $package | package directory |
string | $path | package directory |
changes or null
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 |
updateToCommit(string $path, string $reference, string $branch, \DateTime $date) : null|string
Updates the given path to the given commit ref
string | $path | |
string | $reference | |
string | $branch | |
\DateTime | $date |
if a string is returned, it is the commit reference that was checked out if the original could not be found