1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

repository factoring refactoring

This commit is contained in:
everzet 2011-09-17 14:39:37 +03:00
parent 1e1ecb80b7
commit 5f4d46f7ae
10 changed files with 152 additions and 60 deletions

View file

@ -23,6 +23,16 @@ class ArrayRepository implements RepositoryInterface
{
protected $packages;
static public function supports($type, $name = '', $url = '')
{
return 'array' === strtolower($type);
}
static public function create($type, $name = '', $url = '')
{
return new static();
}
/**
* Adds a new package to the repository
*