Skip to content

Commit dcc2ffa

Browse files
committed
[Lock] 15952 Remove mention off DBAL Connection support for locking
1 parent 89231a2 commit dcc2ffa

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

components/lock.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,12 @@ MongoDB Connection String:
457457
PdoStore
458458
~~~~~~~~
459459

460-
The PdoStore saves locks in an SQL database. It requires a `PDO`_ connection, a
461-
`Doctrine DBAL Connection`_, or a `Data Source Name (DSN)`_. This store does not
460+
The PdoStore saves locks in an SQL database. It requires a `PDO`_ connection or a `Data Source Name (DSN)`_. This store does not
462461
support blocking, and expects a TTL to avoid stalled locks::
463462

464463
use Symfony\Component\Lock\Store\PdoStore;
465464

466-
// a PDO, a Doctrine DBAL connection or DSN for lazy connecting through PDO
465+
// a PDO or a DSN for lazy connecting through PDO
467466
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=app';
468467
$store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);
469468

@@ -483,13 +482,12 @@ PostgreSqlStore
483482
~~~~~~~~~~~~~~~
484483

485484
The PostgreSqlStore uses `Advisory Locks`_ provided by PostgreSQL. It requires a
486-
`PDO`_ connection, a `Doctrine DBAL Connection`_, or a
487-
`Data Source Name (DSN)`_. It supports native blocking, as well as sharing
485+
`PDO`_ connection or a `Data Source Name (DSN)`_. It supports native blocking, as well as sharing
488486
locks::
489487

490488
use Symfony\Component\Lock\Store\PostgreSqlStore;
491489

492-
// a PDO, a Doctrine DBAL connection or DSN for lazy connecting through PDO
490+
// a PDO or a DSN for lazy connecting through PDO
493491
$databaseConnectionOrDSN = 'postgresql://myuser:mypassword@localhost:5634/lock';
494492
$store = new PostgreSqlStore($databaseConnectionOrDSN);
495493

@@ -921,7 +919,6 @@ are still running.
921919
.. _`ACID`: https://en.wikipedia.org/wiki/ACID
922920
.. _`Advisory Locks`: https://www.postgresql.org/docs/current/explicit-locking.html
923921
.. _`Data Source Name (DSN)`: https://en.wikipedia.org/wiki/Data_source_name
924-
.. _`Doctrine DBAL Connection`: https://github.com/doctrine/dbal/blob/master/src/Connection.php
925922
.. _`Expire Data from Collections by Setting TTL`: https://docs.mongodb.com/manual/tutorial/expire-data/
926923
.. _`locks`: https://en.wikipedia.org/wiki/Lock_(computer_science)
927924
.. _`MongoDB Connection String`: https://docs.mongodb.com/manual/reference/connection-string/

0 commit comments

Comments
 (0)