8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53635ce commit 7e85b4bCopy full SHA for 7e85b4b
pkg/mongodb/MongodbConnectionFactory.php
@@ -35,6 +35,7 @@ public function __construct($config = 'mongodb:')
35
} elseif (is_string($config)) {
36
$config = $this->parseDsn($config);
37
} elseif (is_array($config)) {
38
+ $config = $this->parseDsn(empty($config['dsn']) ? 'mongodb:' : $config['dsn']);
39
} else {
40
throw new \LogicException('The config must be either an array of options, a DSN string or null');
41
}
0 commit comments