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 6f13dac commit c0c3958Copy full SHA for c0c3958
src/db/Mongo.php
@@ -21,7 +21,7 @@
21
use MongoDB\Driver\Query as MongoQuery;
22
use MongoDB\Driver\ReadPreference;
23
use MongoDB\Driver\WriteConcern;
24
-use think\db\connector\Mongo as Connection;
+use think\db\connector\Mongo as MongoConnection;
25
use think\db\Query;
26
27
class Mongo extends Query
@@ -31,10 +31,10 @@ class Mongo extends Query
31
* 架构函数
32
* @access public
33
*/
34
- public function __construct(Connection $connection = null)
+ public function __construct(MongoConnection $connection = null)
35
{
36
if (is_null($connection)) {
37
- $this->connection = Connection::instance();
+ $this->connection = MongoConnection::instance();
38
} else {
39
$this->connection = $connection;
40
}
0 commit comments