Skip to content

Commit f7355bd

Browse files
committed
minor #15789 [Cache] Document deprecation of Doctrine Cache (derrabus)
This PR was merged into the 5.4 branch. Discussion ---------- [Cache] Document deprecation of Doctrine Cache Fixes #15788 Commits ------- 552d9db Document deprecation of Doctrine Cache
2 parents 59724d9 + 552d9db commit f7355bd

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

cache.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ The following example shows a typical usage of the cache::
3030
Symfony supports Cache Contracts, PSR-6/16 and Doctrine Cache interfaces.
3131
You can read more about these at the :doc:`component documentation </components/cache>`.
3232

33+
.. deprecated:: 5.4
34+
35+
Support for Doctrine Cache was deprecated in Symfony 5.4
36+
and it will be removed in Symfony 6.0.
37+
3338
.. _cache-configuration-with-frameworkbundle:
3439

3540
Configuring Cache with FrameworkBundle

components/cache.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ The Cache Component
2020
Doctrine caches. See :doc:`/components/cache/psr6_psr16_adapters` and
2121
:doc:`/components/cache/adapters/doctrine_adapter`.
2222

23+
.. deprecated:: 5.4
24+
25+
Support for Doctrine Cache was deprecated in Symfony 5.4
26+
and it will be removed in Symfony 6.0.
27+
2328
Installation
2429
------------
2530

components/cache/adapters/doctrine_adapter.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
Doctrine Cache Adapter
88
======================
99

10+
.. deprecated:: 5.4
11+
12+
The ``DoctrineAdapter`` and ``DoctrineProvider`` classes were deprecated in Symfony 5.4
13+
and it will be removed in Symfony 6.0.
14+
1015
This adapter wraps any class extending the `Doctrine Cache`_ abstract provider, allowing
1116
you to use these providers in your application as if they were Symfony Cache adapters.
1217

@@ -39,9 +44,4 @@ third parameters::
3944
A :class:`Symfony\\Component\\Cache\\DoctrineProvider` class is also provided by the
4045
component to use any PSR6-compatible implementations with Doctrine-compatible classes.
4146

42-
.. deprecated:: 5.4
43-
44-
The ``DoctrineProvider`` class was deprecated in Symfony 5.4 and it will
45-
be removed in Symfony 6.0.
46-
4747
.. _`Doctrine Cache`: https://github.com/doctrine/cache

0 commit comments

Comments
 (0)