1
0
Fork 0

Also load config into IO if not freshly created

pull/7937/head
Arnout Boks 2019-01-31 13:38:20 +01:00
parent e151a6c51c
commit 82b010782d
1 changed files with 3 additions and 3 deletions

View File

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