mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Fixes #1653
This commit is contained in:
parent
373ff04261
commit
40c9584746
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ EOT
|
|||
$output->writeln('No composer.json found in the current directory, showing available packages from ' . implode(', ', array_keys($defaultRepos)));
|
||||
}
|
||||
} elseif ($composer = $this->getComposer(false)) {
|
||||
$localRepo = $composer = $this->getComposer()->getRepositoryManager()->getLocalRepository();
|
||||
$composer = $this->getComposer();
|
||||
$localRepo = $composer->getRepositoryManager()->getLocalRepository();
|
||||
$installedRepo = new CompositeRepository(array($localRepo, $platformRepo));
|
||||
$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue