1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 01:22:54 +00:00

Added a method to find packages by name

This commit is contained in:
Christophe Coevoet 2012-01-16 12:44:47 +01:00
parent 098ba8e583
commit fc17e26bc3
2 changed files with 22 additions and 0 deletions

View file

@ -41,6 +41,15 @@ interface RepositoryInterface extends \Countable
*/
function findPackage($name, $version);
/**
* Searches for packages by it's name .
*
* @param string $name package name
*
* @return array
*/
function findPackagesByName($name);
/**
* Returns list of registered packages.
*