mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
repository factoring refactoring
This commit is contained in:
parent
1e1ecb80b7
commit
5f4d46f7ae
10 changed files with 152 additions and 60 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue