1
0
Fork 0

Merge pull request #7937 from aboks/defaultrepos-auth

Fix defaultRepos fallback does not use auth config
pull/7946/head
Jordi Boggiano 2019-01-31 16:09:20 +01:00 committed by GitHub
commit 27bdda1fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,9 @@ class RepositoryFactory
if (!$config) {
$config = Factory::createConfig($io);
}
if ($io) {
$io->loadConfiguration($config);
}
if (!$rm) {
if (!$io) {
throw new \InvalidArgumentException('This function requires either an IOInterface or a RepositoryManager');