Skip to content
Merged
Changes from all 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
2 changes: 2 additions & 0 deletions serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ You can also specify the context on a per-property basis::

.. code-block:: yaml

# config/serializer/custom_config.yaml
App\Model\Person:
attributes:
createdAt:
Expand All @@ -218,6 +219,7 @@ You can also specify the context on a per-property basis::
.. code-block:: xml

<?xml version="1.0" encoding="UTF-8" ?>
<!-- config/serializer/custom_config.xml -->
<serializer xmlns="http://symfony.com/schema/dic/serializer-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping
Expand Down
Loading