File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 34
34
use Symfony \Component \Form \FormRegistryInterface ;
35
35
use Symfony \Component \Form \ResolvedFormTypeFactory ;
36
36
use Symfony \Component \Form \ResolvedFormTypeFactoryInterface ;
37
- use Symfony \Component \Form \Serializer \FormErrorNormalizer ;
38
37
use Symfony \Component \Form \Util \ServerParams ;
39
38
40
39
return static function (ContainerConfigurator $ container ) {
146
145
param ('validator.translation_domain ' ),
147
146
])
148
147
->tag ('form.type_extension ' )
149
-
150
- ->set ('form.serializer.normalizer.form_error ' , FormErrorNormalizer::class)
151
- ->tag ('serializer.normalizer ' , ['priority ' => -915 ])
152
148
;
153
149
};
Original file line number Diff line number Diff line change 38
38
use Symfony \Component \Serializer \Normalizer \DateTimeNormalizer ;
39
39
use Symfony \Component \Serializer \Normalizer \DateTimeZoneNormalizer ;
40
40
use Symfony \Component \Serializer \Normalizer \DenormalizerInterface ;
41
+ use Symfony \Component \Serializer \Normalizer \FormErrorNormalizer ;
41
42
use Symfony \Component \Serializer \Normalizer \JsonSerializableNormalizer ;
42
43
use Symfony \Component \Serializer \Normalizer \MimeMessageNormalizer ;
43
44
use Symfony \Component \Serializer \Normalizer \NormalizerInterface ;
110
111
->set ('serializer.normalizer.uid ' , UidNormalizer::class)
111
112
->tag ('serializer.normalizer ' , ['priority ' => -915 ])
112
113
114
+ ->set ('serializer.normalizer.form_error ' , FormErrorNormalizer::class)
115
+ ->tag ('serializer.normalizer ' , ['priority ' => -915 ])
116
+
113
117
->set ('serializer.normalizer.object ' , ObjectNormalizer::class)
114
118
->args ([
115
119
service ('serializer.mapping.class_metadata_factory ' ),
Original file line number Diff line number Diff line change 40
40
use Symfony \Component \DependencyInjection \ParameterBag \EnvPlaceholderParameterBag ;
41
41
use Symfony \Component \DependencyInjection \Reference ;
42
42
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
43
- use Symfony \Component \Form \Serializer \FormErrorNormalizer ;
44
43
use Symfony \Component \HttpClient \MockHttpClient ;
45
44
use Symfony \Component \HttpClient \ScopingHttpClient ;
46
45
use Symfony \Component \HttpKernel \DependencyInjection \LoggerPass ;
53
52
use Symfony \Component \Serializer \Normalizer \DataUriNormalizer ;
54
53
use Symfony \Component \Serializer \Normalizer \DateIntervalNormalizer ;
55
54
use Symfony \Component \Serializer \Normalizer \DateTimeNormalizer ;
55
+ use Symfony \Component \Serializer \Normalizer \FormErrorNormalizer ;
56
56
use Symfony \Component \Serializer \Normalizer \JsonSerializableNormalizer ;
57
57
use Symfony \Component \Serializer \Serializer ;
58
58
use Symfony \Component \Translation \DependencyInjection \TranslatorPass ;
@@ -1159,7 +1159,7 @@ public function testFormErrorNormalizerRegistred()
1159
1159
{
1160
1160
$ container = $ this ->createContainerFromFile ('full ' );
1161
1161
1162
- $ definition = $ container ->getDefinition ('form. serializer.normalizer.form_error ' );
1162
+ $ definition = $ container ->getDefinition ('serializer.normalizer.form_error ' );
1163
1163
$ tag = $ definition ->getTag ('serializer.normalizer ' );
1164
1164
1165
1165
$ this ->assertEquals (FormErrorNormalizer::class, $ definition ->getClass ());
You can’t perform that action at this time.
0 commit comments