/**
  * Disconnect from the underlying MongoClient connection.
  */
 public function disconnect()
 {
     $this->connection->close();
 }
Exemplo n.º 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();
 }