Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f4f5eb9

Browse filesBrowse files
committed
Various fixes
1 parent 5291729 commit f4f5eb9
Copy full SHA for f4f5eb9

File tree

2 files changed

+18
-15
lines changed
Filter options

2 files changed

+18
-15
lines changed

‎components/lock.rst

Copy file name to clipboardExpand all lines: components/lock.rst
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ support blocking, and expects a TTL to avoid stalled locks::
276276

277277
Memcached does not support TTL lower than 1 second.
278278

279-
.. _lock-store-pdo:
280-
281279
.. _lock-store-mongodb:
282280

283281
MongoDbStore
@@ -339,6 +337,7 @@ MongoDB Connection String:
339337
The ``collection`` querystring parameter is not part of the `MongoDB Connection String`_ definition.
340338
It is used to allow constructing a ``MongoDbStore`` using a `Data Source Name (DSN)`_ without ``$options``.
341339

340+
.. _lock-store-pdo:
342341

343342
PdoStore
344343
~~~~~~~~
@@ -350,7 +349,7 @@ support blocking, and expects a TTL to avoid stalled locks::
350349
use Symfony\Component\Lock\Store\PdoStore;
351350

352351
// a PDO, a Doctrine DBAL connection or DSN for lazy connecting through PDO
353-
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=lock';
352+
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=app';
354353
$store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);
355354

356355
.. note::

‎lock.rst

Copy file name to clipboardExpand all lines: lock.rst
+16-12Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ this behavior by using the ``lock`` key like:
5656
lock: 'zookeeper://z1.docker'
5757
lock: 'zookeeper://z1.docker,z2.docker'
5858
lock: 'sqlite:///%kernel.project_dir%/var/lock.db'
59-
lock: 'mysql:host=127.0.0.1;dbname=lock'
60-
lock: 'pgsql:host=127.0.0.1;dbname=lock'
61-
lock: 'sqlsrv:server=localhost;Database=test'
62-
lock: 'oci:host=localhost;dbname=test'
59+
lock: 'mysql:host=127.0.0.1;dbname=app'
60+
lock: 'pgsql:host=127.0.0.1;dbname=app'
61+
lock: 'sqlsrv:server=127.0.0.1;Database=app'
62+
lock: 'oci:host=127.0.0.1;dbname=app'
63+
lock: 'mongodb://127.0.0.1/app?collection=lock'
6364
lock: '%env(LOCK_DSN)%'
6465
6566
# named locks
@@ -102,13 +103,15 @@ this behavior by using the ``lock`` key like:
102103
103104
<framework:resource>sqlite:///%kernel.project_dir%/var/lock.db</framework:resource>
104105
105-
<framework:resource>mysql:host=127.0.0.1;dbname=lock</framework:resource>
106+
<framework:resource>mysql:host=127.0.0.1;dbname=app</framework:resource>
106107
107-
<framework:resource>pgsql:host=127.0.0.1;dbname=lock</framework:resource>
108+
<framework:resource>pgsql:host=127.0.0.1;dbname=app</framework:resource>
108109
109-
<framework:resource>sqlsrv:server=localhost;Database=test</framework:resource>
110+
<framework:resource>sqlsrv:server=127.0.0.1;Database=app</framework:resource>
110111
111-
<framework:resource>oci:host=localhost;dbname=test</framework:resource>
112+
<framework:resource>oci:host=127.0.0.1;dbname=app</framework:resource>
113+
114+
<framework:resource>mongodb://127.0.0.1/app?collection=lock</framework:resource>
112115
113116
<framework:resource>%env(LOCK_DSN)%</framework:resource>
114117
@@ -135,10 +138,11 @@ this behavior by using the ``lock`` key like:
135138
'lock' => 'zookeeper://z1.docker',
136139
'lock' => 'zookeeper://z1.docker,z2.docker',
137140
'lock' => 'sqlite:///%kernel.project_dir%/var/lock.db',
138-
'lock' => 'mysql:host=127.0.0.1;dbname=lock',
139-
'lock' => 'pgsql:host=127.0.0.1;dbname=lock',
140-
'lock' => 'sqlsrv:server=localhost;Database=test',
141-
'lock' => 'oci:host=localhost;dbname=test',
141+
'lock' => 'mysql:host=127.0.0.1;dbname=app',
142+
'lock' => 'pgsql:host=127.0.0.1;dbname=app',
143+
'lock' => 'sqlsrv:server=127.0.0.1;Database=app',
144+
'lock' => 'oci:host=127.0.0.1;dbname=app',
145+
'lock' => 'mongodb://127.0.0.1/app?collection=lock',
142146
'lock' => '%env(LOCK_DSN)%',
143147
144148
// named locks

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.