8000 Various fixes · symfony/symfony-docs@16402e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 16402e7

Browse files
committed
Various fixes
1 parent eab61bb commit 16402e7

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

components/lock.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,6 @@ support blocking, and expects a TTL to avoid stalled locks::
340340

341341
Memcached does not support TTL lower than 1 second.
342342

343-
.. _lock-store-pdo:
344-
345343
.. _lock-store-mongodb:
346344

347345
MongoDbStore
@@ -403,6 +401,7 @@ MongoDB Connection String:
403401
The ``collection`` querystring parameter is not part of the `MongoDB Connection String`_ definition.
404402
It is used to allow constructing a ``MongoDbStore`` using a `Data Source Name (DSN)`_ without ``$options``.
405403

404+
.. _lock-store-pdo:
406405

407406
PdoStore
408407
~~~~~~~~
@@ -414,7 +413,7 @@ support blocking, and expects a TTL to avoid stalled locks::
414413
use Symfony\Component\Lock\Store\PdoStore;
415414

416415
// a PDO, a Doctrine DBAL connection or DSN for lazy connecting through PDO
417-
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=lock';
416+
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=app';
418417
$store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);
419418

420419
.. note::

lock.rst

Lines 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.01;dbname=app'
60+
lock: 'pgsql:host=127.0.01;dbname=app'
61+
lock: 'sqlsrv:server=127.0.01;Database=app'
62+
lock: 'oci:host=127.0.01;dbname=app'
63+
lock: 'mongodb://127.0.01/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.01;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.01;dbname=app</framework:resource>
108109
109-
<framework:resource>sqlsrv:server=localhost;Database=test</framework:resource>
110+
<framework:resource>sqlsrv:server=127.0.01;Database=app</framework:resource>
110111
111-
<framework:resource>oci:host=localhost;dbname=test</framework:resource>
112+
<framework:resource>oci:host=127.0.01;dbname=app</framework:resource>
113+
114+
<framework:resource>mongodb://127.0.01/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.01;dbname=app',
142+
'lock' => 'pgsql:host=127.0.01;dbname=app',
143+
'lock' => 'sqlsrv:server=127.0.01;Database=app',
144+
'lock' => 'oci:host=127.0.01;dbname=app',
145+
'lock' => 'mongodb://127.0.01/app?collection=lock',
142146
'lock' => '%env(LOCK_DSN)%',
143147
144148
// named locks

0 commit comments

Comments
 (0)
0