$composer
$composer :
Package installation manager.
__construct(\Composer\IO\IOInterface $io, \Composer\Composer $composer, string $type = 'pear-library')
Initializes library installer.
\Composer\IO\IOInterface | $io | io instance |
\Composer\Composer | $composer | |
string | $type | package type that this installer handles |
isInstalled(\Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $package) : boolean
Checks that provided package is installed.
\Composer\Repository\InstalledRepositoryInterface | $repo | repository in which to check |
\Composer\Package\PackageInterface | $package | package instance |
install(\Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $package)
Installs specific package.
\Composer\Repository\InstalledRepositoryInterface | $repo | repository in which to check |
\Composer\Package\PackageInterface | $package | package instance |
update(\Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $initial, \Composer\Package\PackageInterface $target)
Updates specific package.
\Composer\Repository\InstalledRepositoryInterface | $repo | repository in which to check |
\Composer\Package\PackageInterface | $initial | already installed package version |
\Composer\Package\PackageInterface | $target | updated version |
uninstall(\Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $package)
Uninstalls specific package.
\Composer\Repository\InstalledRepositoryInterface | $repo | repository in which to check |
\Composer\Package\PackageInterface | $package | package instance |
getInstallPath(\Composer\Package\PackageInterface $package) : string
Returns the installation path of a package
\Composer\Package\PackageInterface | $package |
path
ensureBinariesPresence(\Composer\Package\PackageInterface $package)
Make sure binaries are installed for a given package.
\Composer\Package\PackageInterface | $package | Package instance |
getPackageBasePath(\Composer\Package\PackageInterface $package) : string
Returns the base path of the package without target-dir path
It is used for BC as getInstallPath tends to be overridden by installer plugins but not getPackageBasePath
\Composer\Package\PackageInterface | $package |
installCode(\Composer\Package\PackageInterface $package)
\Composer\Package\PackageInterface | $package |
updateCode(\Composer\Package\PackageInterface $initial, \Composer\Package\PackageInterface $target)
\Composer\Package\PackageInterface | $initial | |
\Composer\Package\PackageInterface | $target |
removeCode(\Composer\Package\PackageInterface $package)
\Composer\Package\PackageInterface | $package |