getMongoClient() публичный Метод

Get the MongoClient instance being wrapped.
public getMongoClient ( ) : MongoClient
Результат MongoClient
Пример #1
0
 public function testInitializeMongoClient()
 {
     $conn = new Connection();
     $this->assertInstanceOf('MongoClient', $conn->getMongoClient());
 }
 /**
  * @return \MongoDB
  */
 protected function getMongoDatabase()
 {
     $dbName = $this->container->getParameter('mongodb_database');
     return $this->mongoConnection->getMongoClient()->{$dbName};
 }