Skip to content

Commit 538e9a9

Browse files
committed
Merge branch '4.4'
* 4.4: Replace NormalizerInterface by ContextAwareNormalizerInterface to use context in supportNormalization method
2 parents ab77007 + 83198c7 commit 538e9a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serializer/custom_normalizer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``:
2121

2222
use App\Entity\Topic;
2323
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
24-
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
24+
use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface;
2525
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
2626

27-
class TopicNormalizer implements NormalizerInterface
27+
class TopicNormalizer implements ContextAwareNormalizerInterface
2828
{
2929
private $router;
3030
private $normalizer;

0 commit comments

Comments
 (0)