File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -289,17 +289,18 @@ The MongoDbStore saves locks on a MongoDB server, it requires a
289289``\MongoDB\Client `` connection from `mongodb/mongodb `_. This store does not
290290support blocking and expects a TTL to avoid stalled locks::
291291
292+ use MongoDB\Client;
292293 use Symfony\Component\Lock\Store\MongoDbStore;
293294
294- $mongoClient = new \MongoDB\ Client('mongo://localhost/');
295+ $client = new Client('mongo://localhost/');
295296
296297 $options = [
297298 'database' => 'my-app',
298299 ];
299300
300- $store = new MongoDbStore($mongoClient , $options);
301+ $store = new MongoDbStore($client , $options);
301302
302- The ``MongoDbStore `` takes the following `` $ options`` :
303+ The ``MongoDbStore `` takes the following options:
303304
304305============ ========= ========================================================================
305306Option Default Description
You can’t perform that action at this time.
0 commit comments