8000 Add Uid normalizer to normalizers list · symfony/symfony-docs@93f8374 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93f8374

Browse files
committed
Add Uid normalizer to normalizers list
1 parent bbfa409 commit 93f8374

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/serializer.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,12 @@ There are several types of normalizers available:
804804
:class:`Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer`
805805
Normalizes errors according to the API Problem spec `RFC 7807`_.
806806

807+
:class:`Symfony\\Component\\Serializer\\Normalizer\\UidNormalizer`
808+
This normalizer converts objects that implement
809+
:class:`Symfony\\Component\\Uid\\AbstractUid` into strings. Also it can
810+
denormalize ``uuid`` or ``ulid`` strings to :class:`Symfony\\Component\\Uid\\Uuid`
811+
or :class:`Symfony\\Component\\Uid\\Ulid`.
812+
807813
.. _component-serializer-encoders:
808814

809815
Encoders

0 commit comments

Comments
 (0)
0