Skip to content

[Lock] Remove mention off DBAL Connection support for locking #15970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2023
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