mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Move root package handling to a dedicated loader and make ArrayLoader more strict
This commit is contained in:
parent
a2caa7c5e6
commit
f6b9488bf0
14 changed files with 86 additions and 62 deletions
|
@ -59,8 +59,6 @@ class RepositoryManager
|
|||
{
|
||||
$this->repositories[] = $repository;
|
||||
|
||||
$repository->setRepositoryManager($this);
|
||||
|
||||
// already initialized, so initialize new repos on the fly
|
||||
if ($this->initialized) {
|
||||
$repository->getPackages();
|
||||
|
@ -120,7 +118,6 @@ class RepositoryManager
|
|||
*/
|
||||
public function setLocalRepository(RepositoryInterface $repository)
|
||||
{
|
||||
$repository->setRepositoryManager($this);
|
||||
$this->localRepository = $repository;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue