Doctrine\MongoDB\Connection::getConfiguration PHP Method

getConfiguration() public method

Get the Configuration used by this Connection.
public getConfiguration ( ) : Doctrine\MongoDB\Configuration
return Doctrine\MongoDB\Configuration
    public function getConfiguration()
    {
        return $this->config;
    }

Usage Example

Beispiel #1
0
 public function testLog()
 {
     $conn = new Connection();
     $called = false;
     $conn->getConfiguration()->setLoggerCallable(function ($msg) use(&$called) {
         $called = $msg;
     });
     $conn->log(array('test'));
     $this->assertEquals(array('test'), $called);
 }
All Usage Examples Of Doctrine\MongoDB\Connection::getConfiguration