Метод |
Описание |
|
addPackage ( Composer\Package\PackageInterface $package ) |
Adds package to the repository. |
|
count ( ) |
|
|
findPackage ( string $name, string $version ) : Composer\Package\PackageInterface | null |
Searches for the first match of a package by name and version. |
|
findPackages ( string $name, string $version = null ) : array |
Searches for all packages matching a name and optionally a version. |
|
getCanonicalPackages ( ) : Composer\Package\PackageInterface[] |
Get unique packages, with aliases resolved and removed |
|
getPackages ( ) : array |
Returns list of registered packages. |
|
hasPackage ( Composer\Package\PackageInterface $package ) : boolean |
Checks if specified package registered (installed). |
|
reload ( ) |
Forces a reload of all packages |
|
removePackage ( Composer\Package\PackageInterface $package ) |
Removes package from the repository. |
|
search ( string $query, integer $mode ) : array[] |
Searches the repository for packages containing the query |
|
write ( ) |
Writes repository (f.e. to the disc). |
|