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
291
291
``\MongoDB\Client `` connection from `mongodb/mongodb `_. This store does not
292
292
support blocking and expects a TTL to avoid stalled locks::
293
293
294
+ use MongoDB\Client;
294
295
use Symfony\Component\Lock\Store\MongoDbStore;
295
296
296
- $mongoClient = new \MongoDB\ Client('mongo://localhost/');
297
+ $client = new Client('mongo://localhost/');
297
298
298
299
$options = [
299
300
'database' => 'my-app',
300
301
];
301
302
302
- $store = new MongoDbStore($mongoClient , $options);
303
+ $store = new MongoDbStore($client , $options);
303
304
304
- The ``MongoDbStore `` takes the following `` $ options`` :
305
+ The ``MongoDbStore `` takes the following options:
305
306
306
307
============ ========= ========================================================================
307
308
Option Default Description
You can’t perform that action at this time.
0 commit comments