@@ -457,13 +457,12 @@ MongoDB Connection String:
457
457
PdoStore
458
458
~~~~~~~~
459
459
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
462
461
support blocking, and expects a TTL to avoid stalled locks::
463
462
464
463
use Symfony\Component\Lock\Store\PdoStore;
465
464
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
467
466
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=app';
468
467
$store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);
469
468
@@ -483,13 +482,12 @@ PostgreSqlStore
483
482
~~~~~~~~~~~~~~~
484
483
485
484
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
488
486
locks::
489
487
490
488
use Symfony\Component\Lock\Store\PostgreSqlStore;
491
489
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
493
491
$databaseConnectionOrDSN = 'postgresql://myuser:mypassword@localhost:5634/lock';
494
492
$store = new PostgreSqlStore($databaseConnectionOrDSN);
495
493
@@ -921,7 +919,6 @@ are still running.
921
919
.. _`ACID` : https://en.wikipedia.org/wiki/ACID
922
920
.. _`Advisory Locks` : https://www.postgresql.org/docs/current/explicit-locking.html
923
921
.. _`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
925
922
.. _`Expire Data from Collections by Setting TTL` : https://docs.mongodb.com/manual/tutorial/expire-data/
926
923
.. _`locks` : https://en.wikipedia.org/wiki/Lock_(computer_science)
927
924
.. _`MongoDB Connection String` : https://docs.mongodb.com/manual/reference/connection-string/
0 commit comments