Skip to content

[Cache] Document deprecation of Doctrine Cache #15789

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
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 </components/cache>`.

.. 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
Expand Down
5 changes: 5 additions & 0 deletions components/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------

Expand Down
10 changes: 5 additions & 5 deletions components/cache/adapters/doctrine_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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