Skip to content

Commit 33d6d15

Browse files
Joe BennettOskarStark
Joe Bennett
andcommitted
Apply suggestions from code review
Co-Authored-By: Oskar Stark <oskarstark@googlemail.com>
1 parent 381885c commit 33d6d15

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/lock.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
292292
support 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
============ ========= ========================================================================
307308
Option Default Description

0 commit comments

Comments
 (0)