mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
added findPackage() method to the RepositoryManager and RepositoryInterface
This commit is contained in:
parent
21191ffa00
commit
cc2f2b79ca
3 changed files with 44 additions and 0 deletions
|
@ -31,6 +31,16 @@ interface RepositoryInterface extends \Countable
|
|||
*/
|
||||
function hasPackage(PackageInterface $package);
|
||||
|
||||
/**
|
||||
* Searches for a package by it's name and version (if has one).
|
||||
*
|
||||
* @param string $name package name
|
||||
* @param string $version package version
|
||||
*
|
||||
* @return PackageInterface|null
|
||||
*/
|
||||
function findPackage($name, $version);
|
||||
|
||||
/**
|
||||
* Returns list of registered packages.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue