/**
  * Disconnect from the underlying MongoClient connection.
  */
 public function disconnect()
 {
     $this->connection->close();
 }
Example #2
0
 /**
  * Wrapper method for MongoClient::close().
  *
  * @see http://php.net/manual/en/mongoclient.close.php
  * @return boolean
  */
 public function close()
 {
     $this->initialize();
     return $this->mongoClient->close();
 }