Skip to content
Closed
Changes from 1 commit
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
10 changes: 7 additions & 3 deletions serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ A service leveraging `APCu`_ (and APC for PHP < 5.5) is built-in.
framework:
# ...
serializer:
cache: serializer.mapping.cache.apc
cache: serializer.mapping.cache.doctrine.apc

.. code-block:: xml

Expand All @@ -239,7 +239,7 @@ A service leveraging `APCu`_ (and APC for PHP < 5.5) is built-in.

<framework:config>
<!-- ... -->
<framework:serializer cache="serializer.mapping.cache.apc" />
<framework:serializer cache="serializer.mapping.cache.doctrine.apc" />
</framework:config>
</container>

Expand All @@ -249,10 +249,14 @@ A service leveraging `APCu`_ (and APC for PHP < 5.5) is built-in.
$container->loadFromExtension('framework', array(
// ...
'serializer' => array(
'cache' => 'serializer.mapping.cache.apc',
'cache' => 'serializer.mapping.cache.doctrine.apc',
),
));

.. versionadded:: 3.1
The ``serializer.mapping.cache.doctrine.apc`` service was introduced in 3.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The serializer.mapping.cache.doctrine.apc service is now also deprecated since Symfony 3.2 (see symfony/symfony#19236).

version to replace ``serializer.mapping.cache.apc``.

Enabling a Name Converter
-------------------------

Expand Down