Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3c3a276

Browse filesBrowse files
committed
[DI][Serializer] Fix missing de(normalizer|coder) autoconfig
1 parent 7938fde commit 3c3a276
Copy full SHA for 3c3a276

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.