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 @@ -291,17 +291,18 @@ The MongoDbStore saves locks on a MongoDB server, it requires a
291291``\MongoDB\Client `` connection from `mongodb/mongodb `_. This store does not
292292support blocking and expects a TTL to avoid stalled locks::
293293
294+ use MongoDB\Client;
294295 use Symfony\Component\Lock\Store\MongoDbStore;
295296
296- $mongoClient = new \MongoDB\ Client('mongo://localhost/');
297+ $client = new Client('mongo://localhost/');
297298
298299 $options = [
299300 'database' => 'my-app',
300301 ];
301302
302- $store = new MongoDbStore($mongoClient , $options);
303+ $store = new MongoDbStore($client , $options);
303304
304- The ``MongoDbStore `` takes the following `` $ options`` :
305+ The ``MongoDbStore `` takes the following options:
305306
306307============ ========= ========================================================================
307308Option Default Description
You can’t perform that action at this time.
0 commit comments