svn: /phpdoc/en/trunk/reference/mongodb/tutorial/ library.xml
| From: | Derick Rethans | Date: | Wed, 24 Feb 2016 15:15:21 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongodb/tutorial/ library.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14037@lists.php.net to get a copy of this message | ||
derick Wed, 24 Feb 2016 15:15:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=338661
Log:
Fixed error in example.
Changed paths:
U phpdoc/en/trunk/reference/mongodb/tutorial/library.xml
Modified: phpdoc/en/trunk/reference/mongodb/tutorial/library.xml
===================================================================
--- phpdoc/en/trunk/reference/mongodb/tutorial/library.xml 2016-02-24 14:09:57 UTC (rev 338660)
+++ phpdoc/en/trunk/reference/mongodb/tutorial/library.xml 2016-02-24 15:15:21 UTC (rev 338661)
@@ -106,7 +106,7 @@
<?php
require 'vendor/autoload.php'; // include Composer goodies
-$client = new MongoDB\Driver\Client("mongodb://localhost:27017");
+$client = new MongoDB\Client("mongodb://localhost:27017");
$collection = $client->demo->beers;
$result = $collection->insertOne( [ 'name' => 'Hinterland',
'brewery' => 'BrewDog' ] );