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
280280``\MongoDB\Client `` connection from `mongodb/mongodb `_. This store does not
281281support blocking and expects a TTL to avoid stalled locks::
282282
283+ use MongoDB\Client;
283284 use Symfony\Component\Lock\Store\MongoDbStore;
284285
285- $mongoClient = new \MongoDB\ Client('mongo://localhost/');
286+ $client = new Client('mongo://localhost/');
286287
287288 $options = [
288289 'database' => 'my-app',
289290 ];
290291
291- $store = new MongoDbStore($mongoClient , $options);
292+ $store = new MongoDbStore($client , $options);
292293
293- The ``MongoDbStore `` takes the following `` $ options`` :
294+ The ``MongoDbStore `` takes the following options:
294295
295296============ ========= ========================================================================
296297Option Default Description
You can’t perform that action at this time.
0 commit comments