Skip to content

Commit

Permalink
改进
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jan 20, 2018
1 parent 6f13dac commit c0c3958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/db/Mongo.php
Expand Up @@ -21,7 +21,7 @@
use MongoDB\Driver\Query as MongoQuery;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\WriteConcern;
use think\db\connector\Mongo as Connection;
use think\db\connector\Mongo as MongoConnection;
use think\db\Query;

class Mongo extends Query
Expand All @@ -31,10 +31,10 @@ class Mongo extends Query
* 架构函数
* @access public
*/
public function __construct(Connection $connection = null)
public function __construct(MongoConnection $connection = null)
{
if (is_null($connection)) {
$this->connection = Connection::instance();
$this->connection = MongoConnection::instance();
} else {
$this->connection = $connection;
}
Expand Down

0 comments on commit c0c3958

Please sign in to comment.