Skip to content

Commit dd48f1c

Browse files
Joe BennettOskarStark
Joe Bennett
andauthored
Apply suggestions from code review
Co-Authored-By: Oskar Stark <oskarstark@googlemail.com>
1 parent 02493d3 commit dd48f1c

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
@@ -289,17 +289,18 @@ The MongoDbStore saves locks on a MongoDB server, it requires a
289289
``\MongoDB\Client`` connection from `mongodb/mongodb`_. This store does not
290290
support blocking and expects a TTL to avoid stalled locks::
291291

292+
use MongoDB\Client;
292293
use Symfony\Component\Lock\Store\MongoDbStore;
293294

294-
$mongoClient = new \MongoDB\Client('mongo://localhost/');
295+
$client = new Client('mongo://localhost/');
295296

296297
$options = [
297298
'database' => 'my-app',
298299
];
299300

300-
$store = new MongoDbStore($mongoClient, $options);
301+
$store = new MongoDbStore($client, $options);
301302

302-
The ``MongoDbStore`` takes the following ``$options``:
303+
The ``MongoDbStore`` takes the following options:
303304

304305
============ ========= ========================================================================
305306
Option Default Description

0 commit comments

Comments
 (0)