Skip to content

Commit 113d265

Browse files
committed
[DI][Serializer] Fix missing de(normalizer|coder) autoconfig
1 parent 990ea5b commit 113d265

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@
4747
use Symfony\Component\PropertyInfo\PropertyListExtractorInterface;
4848
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
4949
use Symfony\Component\Serializer\Encoder\CsvEncoder;
50+
use Symfony\Component\Serializer\Encoder\DecoderInterface;
5051
use Symfony\Component\Serializer\Encoder\EncoderInterface;
5152
use Symfony\Component\Serializer\Encoder\YamlEncoder;
5253
use Symfony\Component\Serializer\Mapping\Factory\CacheClassMetadataFactory;
5354
use Symfony\Component\Serializer\Normalizer\DataUriNormalizer;
5455
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
56+
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
5557
use Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer;
5658
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
5759
use Symfony\Component\Validator\ConstraintValidatorInterface;
@@ -276,8 +278,12 @@ public function load(array $configs, ContainerBuilder $container)
276278
->addTag('property_info.access_extractor');
277279
$container->registerForAutoconfiguration(EncoderInterface::class)
278280
->addTag('serializer.encoder');
281+
$container->registerForAutoconfiguration(DecoderInterface::class)
282+
->addTag('serializer.encoder');
279283
$container->registerForAutoconfiguration(NormalizerInterface::class)
280284
->addTag('serializer.normalizer');
285+
$container->registerForAutoconfiguration(DenormalizerInterface::class)
286+
->addTag('serializer.normalizer');
281287
$container->registerForAutoconfiguration(ConstraintValidatorInterface::class)
282288
->addTag('validator.constraint_validator');
283289
$container->registerForAutoconfiguration(ObjectInitializerInterface::class)

0 commit comments

Comments
 (0)