supports()
supports(string $packageType) : boolean
Decides if the installer supports the given type
Parameters
string | $packageType |
Metapackage installation manager.
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