Skip to content

Commit 4f31753

Browse files
committed
Tweaks. refs #11439
1 parent 1afd138 commit 4f31753

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

serializer/custom_encoders.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ create your own encoder that uses the
5050

5151
.. tip::
5252

53-
If you need access to ``$context`` in your ``supportsDecoding`` or ``supportsEncoding`` method, make sure
54-
to implements ``Symfony\Component\Serializer\Encoder\ContextAwareEncoderInterface`` or ``Symfony\Component\Serializer\Encoder\ContextAwareEncoderInterface`` interface
53+
If you need access to ``$context`` in your ``supportsDecoding`` or
54+
``supportsEncoding`` method, make sure to implement
55+
``Symfony\Component\Serializer\Encoder\ContextAwareDecoderInterface``
56+
or ``Symfony\Component\Serializer\Encoder\ContextAwareEncoderInterface`` accordingly.
5557

5658

5759
Registering it in your app

0 commit comments

Comments
 (0)