Skip to content

Commit fee97cd

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

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

reference/configuration/framework.rst

Lines changed: 20 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,21 @@ Whether to enable the ``serializer`` service or not in the service container.
681683

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

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

@@ -1567,6 +1584,8 @@ Full Default Configuration
15671584
# serializer configuration
15681585
serializer:
15691586
enabled: false
1587+
cache: ~
1588+
enable_annotations: false
15701589
15711590
# templating configuration
15721591
templating:

0 commit comments

Comments
 (0)