mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Expose default repositories in system config file
This commit is contained in:
parent
4a6ae454c2
commit
3ac11b932c
10 changed files with 68 additions and 63 deletions
|
@ -91,7 +91,7 @@ EOT
|
|||
|
||||
$config = Factory::createConfig();
|
||||
if (null === $repositoryUrl) {
|
||||
$sourceRepo = new CompositeRepository(Factory::createComposerRepositories($io, $config));
|
||||
$sourceRepo = new CompositeRepository(Factory::createDefaultRepositories($io, $config));
|
||||
} elseif ("json" === pathinfo($repositoryUrl, PATHINFO_EXTENSION)) {
|
||||
$sourceRepo = new FilesystemRepository(new JsonFile($repositoryUrl, new RemoteFilesystem($io)));
|
||||
} elseif (0 === strpos($repositoryUrl, 'http')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue