Skip to content

Commit d00e395

Browse files
Joe BennettOskarStark
andcommitted
Apply suggestions from code review
Co-Authored-By: Oskar Stark <[email protected]>
1 parent abf009a commit d00e395

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
@@ -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
281281
support 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
============ ========= ========================================================================
296297
Option Default Description

0 commit comments

Comments
 (0)