mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Merge branch 'tls-config'
This commit is contained in:
commit
d7c61c50ad
34 changed files with 4496 additions and 74 deletions
|
@ -239,7 +239,7 @@ EOT
|
|||
if (null === $repositoryUrl) {
|
||||
$sourceRepo = new CompositeRepository(Factory::createDefaultRepositories($io, $config));
|
||||
} elseif ("json" === pathinfo($repositoryUrl, PATHINFO_EXTENSION) && file_exists($repositoryUrl)) {
|
||||
$json = new JsonFile($repositoryUrl, new RemoteFilesystem($io, $config));
|
||||
$json = new JsonFile($repositoryUrl, Factory::createRemoteFilesystem($io, $config));
|
||||
$data = $json->read();
|
||||
if (!empty($data['packages']) || !empty($data['includes']) || !empty($data['provider-includes'])) {
|
||||
$sourceRepo = new ComposerRepository(array('url' => 'file://' . strtr(realpath($repositoryUrl), '\\', '/')), $io, $config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue