Skip to content

Commit 43864cc

Browse files
committed
minor #20649 [Cache] Fix "Marshalling (Serializing) Data" code rendering issue (Kocal)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [Cache] Fix "Marshalling (Serializing) Data" code rendering issue The code block is not correctly rendered on https://symfony.com/doc/current/components/cache.html#marshalling-serializing-data, see ![image](https://github.com/user-attachments/assets/83666e3c-ca0e-48b5-96c7-18ebc7b9a5fa) Commits ------- 3de90f3 [Cache] Fix "Marshalling (Serializing) Data" code rendering issue
2 parents edb92f8 + 3de90f3 commit 43864cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/cache.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ the cache items before storing them.
209209

210210
The :class:`Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller` uses PHP's
211211
``serialize()`` function by default, but you can optionally use the ``igbinary_serialize()``
212-
function from the `Igbinary extension`_:
212+
function from the `Igbinary extension`_::
213213

214214
use Symfony\Component\Cache\Adapter\RedisAdapter;
215-
use Symfony\Component\Cache\DefaultMarshaller;
216-
use Symfony\Component\Cache\DeflateMarshaller;
215+
use Symfony\Component\Cache\Marshaller\DefaultMarshaller;
216+
use Symfony\Component\Cache\Marshaller\DeflateMarshaller;
217217

218218
$marshaller = new DeflateMarshaller(new DefaultMarshaller());
219219
// you can optionally use the Igbinary extension if you have it installed

0 commit comments

Comments
 (0)