We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53635ce + 7e85b4b commit bfa69d5Copy full SHA for bfa69d5
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