1
0
Fork 0
pull/1655/head
Miklós Márton 2013-03-04 16:33:53 +01:00
parent 373ff04261
commit 40c9584746
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ EOT
$output->writeln('No composer.json found in the current directory, showing available packages from ' . implode(', ', array_keys($defaultRepos))); $output->writeln('No composer.json found in the current directory, showing available packages from ' . implode(', ', array_keys($defaultRepos)));
} }
} elseif ($composer = $this->getComposer(false)) { } elseif ($composer = $this->getComposer(false)) {
$localRepo = $composer = $this->getComposer()->getRepositoryManager()->getLocalRepository(); $composer = $this->getComposer();
$localRepo = $composer->getRepositoryManager()->getLocalRepository();
$installedRepo = new CompositeRepository(array($localRepo, $platformRepo)); $installedRepo = new CompositeRepository(array($localRepo, $platformRepo));
$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories())); $repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
} else { } else {