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 @@ -280,17 +280,18 @@ The MongoDbStore saves locks on a MongoDB server, it requires a
280
280
``\MongoDB\Client `` connection from `mongodb/mongodb `_. This store does not
281
281
support blocking and expects a TTL to avoid stalled locks::
282
282
283
+ use MongoDB\Client;
283
284
use Symfony\Component\Lock\Store\MongoDbStore;
284
285
285
- $mongoClient = new \MongoDB\ Client('mongo://localhost/');
286
+ $client = new Client('mongo://localhost/');
286
287
287
288
$options = [
288
289
'database' => 'my-app',
289
290
];
290
291
291
- $store = new MongoDbStore($mongoClient , $options);
292
+ $store = new MongoDbStore($client , $options);
292
293
293
- The ``MongoDbStore `` takes the following `` $ options`` :
294
+ The ``MongoDbStore `` takes the following options:
294
295
295
296
============ ========= ========================================================================
296
297
Option Default Description
You can’t perform that action at this time.
0 commit comments