Only load configuration into IO if IO is available
parent
d1ce9f6246
commit
e151a6c51c
|
@ -93,8 +93,10 @@ class RepositoryFactory
|
||||||
{
|
{
|
||||||
if (!$config) {
|
if (!$config) {
|
||||||
$config = Factory::createConfig($io);
|
$config = Factory::createConfig($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…
Reference in New Issue