Skip to content

Commit d52f248

Browse files
committed
[FrameworkBundle] Update serializer configuration reference
1 parent 8b0c026 commit d52f248

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

reference/configuration/framework.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Configuration
9292
* `validation`_
9393
* :ref:`enabled <reference-validation-enabled>`
9494
* :ref:`cache <reference-validation-cache>`
95-
* `enable_annotations`_
95+
* :ref:`enable_annotations <reference-validation-enable_annotations>`
9696
* `translation_domain`_
9797
* `strict_email`_
9898
* `api`_
@@ -102,6 +102,8 @@ Configuration
102102
* `debug`_
103103
* `serializer`_
104104
* :ref:`enabled <reference-serializer-enabled>`
105+
* :ref:`cache <reference-serializer-cache>`
106+
* :ref:`enable_annotations <reference-serializer-enable_annotations>`
105107

106108
secret
107109
~~~~~~
@@ -681,6 +683,25 @@ Whether to enable the ``serializer`` service or not in the service container.
681683

682684
For more details, see :doc:`/cookbook/serializer`.
683685

686+
.. _reference-serializer-cache:
687+
688+
cache
689+
.....
690+
691+
**type**: ``string``
692+
693+
The service that is used to persist class metadata in a cache. The service
694+
has to implement the :class:`Doctrine\\Common\\Cache\\Cache` interface.
695+
696+
.. _reference-serializer-enable_annotations:
697+
698+
enable_annotations
699+
..................
700+
701+
**type**: ``boolean`` **default**: ``false``
702+
703+
If this option is enabled, serialization groups can be defined using annotations.
704+
684705
templating
685706
~~~~~~~~~~
686707

@@ -1388,6 +1409,8 @@ cache
13881409
The service that is used to persist class metadata in a cache. The service
13891410
has to implement the :class:`Symfony\\Component\\Validator\\Mapping\\Cache\\CacheInterface`.
13901411

1412+
.. _reference-validation-enable_annotations:
1413+
13911414
enable_annotations
13921415
..................
13931416

@@ -1567,6 +1590,8 @@ Full Default Configuration
15671590
# serializer configuration
15681591
serializer:
15691592
enabled: false
1593+
cache: ~
1594+
enable_annotations: false
15701595
15711596
# templating configuration
15721597
templating:

0 commit comments

Comments
 (0)