Skip to content

Commit 041b040

Browse files
committed
Minor tweaks
1 parent 039a4a6 commit 041b040

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

components/cache/adapters/pdo_doctrine_dbal_adapter.rst

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ The PDO and Doctrine DBAL adapters store the cache items in a table of an SQL da
1111

1212
.. note::
1313

14-
Adapters implement :class:`Symfony\\Component\\Cache\\PruneableInterface`,
15-
allowing for manual :ref:`pruning of expired cache entries <component-cache-cache-pool-prune>` by
16-
calling the ``prune()`` method.
14+
These adapters implement :class:`Symfony\\Component\\Cache\\PruneableInterface`,
15+
allowing for manual :ref:`pruning of expired cache entries <component-cache-cache-pool-prune>`
16+
by calling the ``prune()`` method.
1717

18-
Using :phpclass:`PDO`
19-
---------------------
18+
Using PHP PDO
19+
-------------
2020

2121
The :class:`Symfony\\Component\\Cache\\Adapter\\PdoAdapter` requires a :phpclass:`PDO`,
22-
or `Data Source Name (DSN)`_ as its first parameter, and optionally a namespace,
23-
default cache lifetime, and options array as its second, third, and forth parameters::
22+
or `Data Source Name (DSN)`_ as its first parameter. You can pass a namespace,
23+
default cache lifetime, and options array as the other optional arguments::
2424

2525
use Symfony\Component\Cache\Adapter\PdoAdapter;
2626

@@ -61,14 +61,13 @@ your code.
6161
are lazy-loaded by default; some additional options may be necessary to detect
6262
the database engine and version without opening the connection.
6363

64-
6564
Using Doctrine DBAL
6665
-------------------
6766

6867
The :class:`Symfony\\Component\\Cache\\Adapter\\DoctrineDbalAdapter` requires a
69-
`Doctrine DBAL Connection`_, or `Doctrine DBAL URL`_ as its first parameter, and
70-
optionally a namespace, default cache lifetime, and options array as its second,
71-
third, and forth parameters::
68+
`Doctrine DBAL Connection`_, or `Doctrine DBAL URL`_ as its first parameter.
69+
You can pass a namespace, default cache lifetime, and options array as the other
70+
optional arguments::
7271

7372
use Symfony\Component\Cache\Adapter\DoctrineDbalAdapter;
7473

0 commit comments

Comments
 (0)