Skip to content

Commit c0c3958

Browse files
committed
改进
1 parent 6f13dac commit c0c3958

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/db/Mongo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use MongoDB\Driver\Query as MongoQuery;
2222
use MongoDB\Driver\ReadPreference;
2323
use MongoDB\Driver\WriteConcern;
24-
use think\db\connector\Mongo as Connection;
24+
use think\db\connector\Mongo as MongoConnection;
2525
use think\db\Query;
2626

2727
class Mongo extends Query
@@ -31,10 +31,10 @@ class Mongo extends Query
3131
* 架构函数
3232
* @access public
3333
*/
34-
public function __construct(Connection $connection = null)
34+
public function __construct(MongoConnection $connection = null)
3535
{
3636
if (is_null($connection)) {
37-
$this->connection = Connection::instance();
37+
$this->connection = MongoConnection::instance();
3838
} else {
3939
$this->connection = $connection;
4040
}

0 commit comments

Comments
 (0)