Skip to content

Commit

Permalink
Remove redundant normalizers document
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Jan 5, 2022
1 parent dd5f326 commit 8a44f4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 32 deletions.
12 changes: 6 additions & 6 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,13 @@ When serializing, you can set a callback to format a specific object property::
Normalizers
-----------

Normalizers turn **object** into **array** and vice versa. They implement
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizableInterface`
for normalize (object to array) and
:class:`Symfony\\Component\\Serializer\\Normalizer\\DenormalizableInterface` for denormalize
(array to object).
Normalizers turn **objects** into **arrays** and vice versa. They implement
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface` for
normalizing (object to array) and
:class:`Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface` for
denormalizing (array to object).

You can add new normalizers to a Serializer instance by using its first constructor argument::
Normalizers are enabled in the serializer passing them as its first argument::

use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Serializer;
Expand Down
1 change: 0 additions & 1 deletion serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ take a look at how this bundle works.
.. toctree::
:maxdepth: 1

serializer/normalizers
serializer/custom_encoders
serializer/custom_normalizer

Expand Down
25 changes: 0 additions & 25 deletions serializer/normalizers.rst

This file was deleted.

0 comments on commit 8a44f4a

Please sign in to comment.