Skip to content

Commit a6dc779

Browse files
committed
minor #16372 [Serializer] Remove redundant normalizers document (HypeMC)
This PR was merged into the 4.4 branch. Discussion ---------- [Serializer] Remove redundant normalizers document The `serializer/normalizers.rst` document doesn't really contain any data that isn't already present in `components/serializer.rst` so I'd suggest removing it. There was only one reference to it in `serializer.rst` but that document already contains a link to the Normalizers section in `components/serializer.rst`. Commits ------- 8a44f4a Remove redundant normalizers document
2 parents dd5f326 + 8a44f4a commit a6dc779

File tree

3 files changed

+6
-32
lines changed

3 files changed

+6
-32
lines changed

components/serializer.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -693,13 +693,13 @@ When serializing, you can set a callback to format a specific object property::
693693
Normalizers
694694
-----------
695695

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

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

704704
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
705705
use Symfony\Component\Serializer\Serializer;

serializer.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ take a look at how this bundle works.
269269
.. toctree::
270270
:maxdepth: 1
271271

272-
serializer/normalizers
273272
serializer/custom_encoders
274273
serializer/custom_normalizer
275274

serializer/normalizers.rst

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)