Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added documentation for serializer config
- Added documenation for the serializer config files under the root project directory Signed-off-by: RJ Garcia <rj@bighead.net>
  • Loading branch information
ragboyjr committed Oct 8, 2018
commit 3800c0e13d1e60d490da30b8c18560f81920c49e
4 changes: 3 additions & 1 deletion serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ to your class and choose which groups to use when serializing::
.. tip::

The value of the ``groups`` key can be a single string, or an array of strings.

.. versionadded:: 4.2
The option to pass a single string to ``groups`` was introduced in Symfony 4.2.

Expand All @@ -148,6 +148,8 @@ stored in one of the following locations:
the ``Resources/config/`` directory of a bundle;
* All ``*.yaml`` and ``*.xml`` files in the ``Resources/config/serialization/``
directory of a bundle.
* All ``*.yaml`` and ``*xml`` files in the ``config/serializer`` directory in the
project directory.

.. _serializer-enabling-metadata-cache:

Expand Down