Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stop using the deprecated "serializer.mapping.cache.apc" service#8133

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
javiereguiluz wants to merge2 commits intosymfony:3.2fromjaviereguiluz:fix_7282
Closed
Changes fromall 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
15 changes: 7 additions & 8 deletionsserializer.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -209,11 +209,10 @@ stored in one of the following locations:
Enabling the Metadata Cache
---------------------------

Metadata used by the Serializer component such as groups can be cached to
enhance application performance. Any service implementing the ``Doctrine\Common\Cache\Cache``
interface can be used.

A service leveraging `APCu`_ (and APC for PHP < 5.5) is built-in.
Metadata used by the serializer can be cached to improve application performance.
By default, Symfony uses the same `APCu`_ (or APC for PHP < 5.5) cache already
configured in the application, but you can override it using any other service
implementing the ``Doctrine\Common\Cache\Cache`` interface:

.. configuration-block::

Expand All@@ -223,7 +222,7 @@ A service leveraging `APCu`_ (and APC for PHP < 5.5) is built-in.
framework:
# ...
serializer:
cache:serializer.mapping.cache.apc
cache:id.of.my.own.cache.service
Copy link
Member

Choose a reason for hiding this comment

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

Instead of using theframework.serializer.cache option we should explain to configure thecache.serializer (which defaults tocache.system) service through theframework.cache.pools option.


.. code-block:: xml

Expand All@@ -239,7 +238,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="id.of.my.own.cache.service" />
</framework:config>
</container>

Expand All@@ -249,7 +248,7 @@ 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' => 'id.of.my.own.cache.service',
),
));

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp