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

Use wrapped PlatformRepository only in the Solver

This commit is contained in:
Jordi Boggiano 2011-10-22 19:05:20 +02:00
parent 28369ea623
commit c8cfa15f52
4 changed files with 5 additions and 37 deletions

View file

@ -13,9 +13,7 @@ use Composer\Console\Application as ComposerApplication;
// initialize repository manager
$rm = new Repository\RepositoryManager();
$rm->setLocalRepository(new Repository\PlatformRepository(
new Repository\FilesystemRepository(new JsonFile('.composer/installed.json'))
));
$rm->setLocalRepository(new Repository\FilesystemRepository(new JsonFile('.composer/installed.json')));
$rm->setRepository('Packagist', new Repository\ComposerRepository('http://packagist.org'));
// initialize download manager
@ -33,7 +31,6 @@ $im->setInstaller('symfony-bundle', new Installer\LibraryInstaller('vendor/bundl
$loader = new Package\Loader\JsonLoader();
$package = $loader->load(new JsonFile('composer.json'));
// init locker
$locker = new Package\Locker(new JsonFile('composer.lock'), $rm);