From 82b010782d1c1a3553862621d4eae83e31cdb3d1 Mon Sep 17 00:00:00 2001 From: Arnout Boks Date: Thu, 31 Jan 2019 13:38:20 +0100 Subject: [PATCH] Also load config into IO if not freshly created --- src/Composer/Repository/RepositoryFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Repository/RepositoryFactory.php b/src/Composer/Repository/RepositoryFactory.php index d8e917147..5d3a2a61f 100644 --- a/src/Composer/Repository/RepositoryFactory.php +++ b/src/Composer/Repository/RepositoryFactory.php @@ -93,9 +93,9 @@ class RepositoryFactory { if (!$config) { $config = Factory::createConfig($io); - if ($io) { - $io->loadConfiguration($config); - } + } + if ($io) { + $io->loadConfiguration($config); } if (!$rm) { if (!$io) {