|
37 | 37 | use Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface;
|
38 | 38 | use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
|
39 | 39 | use Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer;
|
40 |
| -use Symfony\Component\Serializer\Normalizer\ContextAwareDenormalizerInterface; |
41 |
| -use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface; |
42 | 40 | use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
43 | 41 | use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
44 | 42 |
|
|
47 | 45 | *
|
48 | 46 | * @author Kévin Dunglas <[email protected]>
|
49 | 47 | */
|
50 |
| -abstract class AbstractItemNormalizer extends AbstractObjectNormalizer implements ContextAwareNormalizerInterface, ContextAwareDenormalizerInterface |
| 48 | +abstract class AbstractItemNormalizer extends AbstractObjectNormalizer |
51 | 49 | {
|
52 | 50 | use ClassInfoTrait;
|
53 | 51 | use ContextTrait;
|
@@ -90,7 +88,7 @@ public function __construct(PropertyNameCollectionFactoryInterface $propertyName
|
90 | 88 | /**
|
91 | 89 | * {@inheritdoc}
|
92 | 90 | */
|
93 |
| - public function supportsNormalization($data, $format = null, array $context = []) |
| 91 | + public function supportsNormalization($data, $format = null) |
94 | 92 | {
|
95 | 93 | if (!\is_object($data) || $data instanceof \Traversable) {
|
96 | 94 | return false;
|
@@ -161,7 +159,7 @@ public function normalize($object, $format = null, array $context = [])
|
161 | 159 | /**
|
162 | 160 | * {@inheritdoc}
|
163 | 161 | */
|
164 |
| - public function supportsDenormalization($data, $type, $format = null, array $context = []) |
| 162 | + public function supportsDenormalization($data, $type, $format = null) |
165 | 163 | {
|
166 | 164 | return $this->localCache[$type] ?? $this->localCache[$type] = $this->resourceClassResolver->isResourceClass($type);
|
167 | 165 | }
|
|
0 commit comments