From 9a44b3f9cc4f4554471d99805dd45e3dd61b3958 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 19 Jul 2019 11:53:05 +0200 Subject: [PATCH] add $context argument to supportsNormalization() --- serializer/custom_normalizer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serializer/custom_normalizer.rst b/serializer/custom_normalizer.rst index b82b61e8e07..1794590c5c8 100644 --- a/serializer/custom_normalizer.rst +++ b/serializer/custom_normalizer.rst @@ -47,7 +47,7 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``: return $data; } - public function supportsNormalization($data, $format = null) + public function supportsNormalization($data, $format = null, array $context = []) { return $data instanceof Topic; }