Skip to content

Commit

Permalink
[FrameworkBundle] Update serializer configuration reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 29, 2015
1 parent 8b0c026 commit d52f248
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Configuration
* `validation`_
* :ref:`enabled <reference-validation-enabled>`
* :ref:`cache <reference-validation-cache>`
* `enable_annotations`_
* :ref:`enable_annotations <reference-validation-enable_annotations>`
* `translation_domain`_
* `strict_email`_
* `api`_
Expand All @@ -102,6 +102,8 @@ Configuration
* `debug`_
* `serializer`_
* :ref:`enabled <reference-serializer-enabled>`
* :ref:`cache <reference-serializer-cache>`
* :ref:`enable_annotations <reference-serializer-enable_annotations>`

secret
~~~~~~
Expand Down Expand Up @@ -681,6 +683,25 @@ Whether to enable the ``serializer`` service or not in the service container.

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

.. _reference-serializer-cache:

cache
.....

**type**: ``string``

The service that is used to persist class metadata in a cache. The service
has to implement the :class:`Doctrine\\Common\\Cache\\Cache` interface.

.. _reference-serializer-enable_annotations:

enable_annotations
..................

**type**: ``boolean`` **default**: ``false``

If this option is enabled, serialization groups can be defined using annotations.

templating
~~~~~~~~~~

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

.. _reference-validation-enable_annotations:

enable_annotations
..................

Expand Down Expand Up @@ -1567,6 +1590,8 @@ Full Default Configuration
# serializer configuration
serializer:
enabled: false
cache: ~
enable_annotations: false
# templating configuration
templating:
Expand Down

0 comments on commit d52f248

Please sign in to comment.