From 3de90f363a446bb0d675c110c7529014e45604c7 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Tue, 11 Feb 2025 15:52:18 +0100 Subject: [PATCH] [Cache] Fix "Marshalling (Serializing) Data" code rendering issue --- components/cache.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/cache.rst b/components/cache.rst index 939627b1807..4873fb7abc7 100644 --- a/components/cache.rst +++ b/components/cache.rst @@ -209,11 +209,11 @@ the cache items before storing them. The :class:`Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller` uses PHP's ``serialize()`` function by default, but you can optionally use the ``igbinary_serialize()`` -function from the `Igbinary extension`_: +function from the `Igbinary extension`_:: use Symfony\Component\Cache\Adapter\RedisAdapter; - use Symfony\Component\Cache\DefaultMarshaller; - use Symfony\Component\Cache\DeflateMarshaller; + use Symfony\Component\Cache\Marshaller\DefaultMarshaller; + use Symfony\Component\Cache\Marshaller\DeflateMarshaller; $marshaller = new DeflateMarshaller(new DefaultMarshaller()); // you can optionally use the Igbinary extension if you have it installed