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