From 552d9dbe8067e8675288d0161bb902d061605c33 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 9 Sep 2021 17:57:01 +0200 Subject: [PATCH] Document deprecation of Doctrine Cache --- cache.rst | 5 +++++ components/cache.rst | 5 +++++ components/cache/adapters/doctrine_adapter.rst | 10 +++++----- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/cache.rst b/cache.rst index 632f5f4905f..ccd1b6ed91f 100644 --- a/cache.rst +++ b/cache.rst @@ -30,6 +30,11 @@ The following example shows a typical usage of the cache:: Symfony supports Cache Contracts, PSR-6/16 and Doctrine Cache interfaces. You can read more about these at the :doc:`component documentation `. +.. deprecated:: 5.4 + + Support for Doctrine Cache was deprecated in Symfony 5.4 + and it will be removed in Symfony 6.0. + .. _cache-configuration-with-frameworkbundle: Configuring Cache with FrameworkBundle diff --git a/components/cache.rst b/components/cache.rst index 02c04a347fa..29c1f0fd42b 100644 --- a/components/cache.rst +++ b/components/cache.rst @@ -20,6 +20,11 @@ The Cache Component Doctrine caches. See :doc:`/components/cache/psr6_psr16_adapters` and :doc:`/components/cache/adapters/doctrine_adapter`. + .. deprecated:: 5.4 + + Support for Doctrine Cache was deprecated in Symfony 5.4 + and it will be removed in Symfony 6.0. + Installation ------------ diff --git a/components/cache/adapters/doctrine_adapter.rst b/components/cache/adapters/doctrine_adapter.rst index 78ca23ae1ea..59c89c1c135 100644 --- a/components/cache/adapters/doctrine_adapter.rst +++ b/components/cache/adapters/doctrine_adapter.rst @@ -7,6 +7,11 @@ Doctrine Cache Adapter ====================== +.. deprecated:: 5.4 + + The ``DoctrineAdapter`` and ``DoctrineProvider`` classes were deprecated in Symfony 5.4 + and it will be removed in Symfony 6.0. + This adapter wraps any class extending the `Doctrine Cache`_ abstract provider, allowing you to use these providers in your application as if they were Symfony Cache adapters. @@ -39,9 +44,4 @@ third parameters:: A :class:`Symfony\\Component\\Cache\\DoctrineProvider` class is also provided by the component to use any PSR6-compatible implementations with Doctrine-compatible classes. - .. deprecated:: 5.4 - - The ``DoctrineProvider`` class was deprecated in Symfony 5.4 and it will - be removed in Symfony 6.0. - .. _`Doctrine Cache`: https://github.com/doctrine/cache