mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Make sure repos are always initialized with a repo manager if possible, and make sure async is always enabled on the process executor, fixes #10783 (#10799)
This commit is contained in:
parent
865886e5c5
commit
88e1f0f9b5
8 changed files with 46 additions and 15 deletions
|
@ -87,9 +87,11 @@ class PoolBuilderTest extends TestCase
|
|||
chdir(__DIR__.'/Fixtures/poolbuilder/');
|
||||
|
||||
$repositorySet = new RepositorySet($minimumStability, $stabilityFlags, $rootAliases, $rootReferences);
|
||||
$config = new Config(false);
|
||||
$rm = RepositoryFactory::manager($io = new NullIO(), $config);
|
||||
foreach ($packageRepos as $packages) {
|
||||
if (isset($packages['type'])) {
|
||||
$repo = RepositoryFactory::createRepo(new NullIO, new Config(false), $packages);
|
||||
$repo = RepositoryFactory::createRepo($io, $config, $packages, $rm);
|
||||
$repositorySet->addRepository($repo);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue