mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Support github auth directly in the RemoteFilesystem class
This commit is contained in:
parent
68e910d92a
commit
b437c1cc05
11 changed files with 87 additions and 87 deletions
|
@ -232,7 +232,7 @@ EOT
|
|||
if (null === $repositoryUrl) {
|
||||
$sourceRepo = new CompositeRepository(Factory::createDefaultRepositories($io, $config));
|
||||
} elseif ("json" === pathinfo($repositoryUrl, PATHINFO_EXTENSION)) {
|
||||
$sourceRepo = new FilesystemRepository(new JsonFile($repositoryUrl, new RemoteFilesystem($io)));
|
||||
$sourceRepo = new FilesystemRepository(new JsonFile($repositoryUrl, new RemoteFilesystem($io, $config)));
|
||||
} elseif (0 === strpos($repositoryUrl, 'http')) {
|
||||
$sourceRepo = new ComposerRepository(array('url' => $repositoryUrl), $io, $config);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue