Also load config into IO if not freshly created

main
Arnout Boks 6 years ago
parent e151a6c51c
commit 82b010782d

@ -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');

Loading…
Cancel
Save