Skip to content

[Serializer] Remove redundant normalizers document #16372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
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
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.