Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions components/lock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,12 @@ MongoDB Connection String:
PdoStore
~~~~~~~~

The PdoStore saves locks in an SQL database. It is identical to DoctrineDbalStore
but requires a `PDO`_ connection or a `Data Source Name (DSN)`_. This store does
not support blocking, and expects a TTL to avoid stalled locks::
The PdoStore saves locks in an SQL database. It requires a `PDO`_ connection or a `Data Source Name (DSN)`_. This store does not
support blocking, and expects a TTL to avoid stalled locks::

use Symfony\Component\Lock\Store\PdoStore;

// a PDO or DSN for lazy connecting through PDO
// a PDO instance or DSN for lazy connecting through PDO
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=app';
$store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);

Expand Down Expand Up @@ -579,9 +578,8 @@ the :method:`Symfony\\Component\\Lock\\Store\\DoctrineDbalStore::save` method.
PostgreSqlStore
~~~~~~~~~~~~~~~

The PostgreSqlStore and DoctrineDbalPostgreSqlStore uses `Advisory Locks`_ provided by PostgreSQL.
It is identical to DoctrineDbalPostgreSqlStore but requires `PDO`_ connection or
a `Data Source Name (DSN)`_. It supports native blocking, as well as sharing
The PostgreSqlStore uses `Advisory Locks`_ provided by PostgreSQL. It requires a
`PDO`_ connection or a `Data Source Name (DSN)`_. It supports native blocking, as well as sharing
locks::

use Symfony\Component\Lock\Store\PostgreSqlStore;
Expand Down