|
52 | 52 | ; |
53 | 53 |
|
54 | 54 | $container->services() |
| 55 | + ->defaults()->private() |
| 56 | + |
55 | 57 | ->set('serializer', Serializer::class) |
56 | 58 | ->public() |
57 | 59 | ->args([[], []]) |
|
73 | 75 | // Normalizer |
74 | 76 | ->set('serializer.normalizer.constraint_violation_list', ConstraintViolationListNormalizer::class) |
75 | 77 | ->args([[], service('serializer.name_converter.metadata_aware')]) |
76 | | - ->tag('serializer.normalizer', ['priority' => '-915']) |
| 78 | + ->tag('serializer.normalizer', ['priority' => -915]) |
77 | 79 |
|
78 | 80 | ->set('serializer.normalizer.datetimezone', DateTimeZoneNormalizer::class) |
79 | | - ->tag('serializer.normalizer', ['priority' => '-915']) |
| 81 | + ->tag('serializer.normalizer', ['priority' => -915]) |
80 | 82 |
|
81 | 83 | ->set('serializer.normalizer.dateinterval', DateIntervalNormalizer::class) |
82 | | - ->tag('serializer.normalizer', ['priority' => '-915']) |
| 84 | + ->tag('serializer.normalizer', ['priority' => -915]) |
83 | 85 |
|
84 | 86 | ->set('serializer.normalizer.data_uri', DataUriNormalizer::class) |
85 | 87 | ->args([service('mime_types')->nullOnInvalid()]) |
86 | | - ->tag('serializer.normalizer', ['priority' => '-920']) |
| 88 | + ->tag('serializer.normalizer', ['priority' => -920]) |
87 | 89 |
|
88 | 90 | ->set('serializer.normalizer.datetime', DateTimeNormalizer::class) |
89 | | - ->tag('serializer.normalizer', ['priority' => '-910']) |
| 91 | + ->tag('serializer.normalizer', ['priority' => -910]) |
90 | 92 |
|
91 | 93 | ->set('serializer.normalizer.json_serializable', JsonSerializableNormalizer::class) |
92 | | - ->tag('serializer.normalizer', ['priority' => '-900']) |
| 94 | + ->tag('serializer.normalizer', ['priority' => -900]) |
93 | 95 |
|
94 | 96 | ->set('serializer.normalizer.problem', ProblemNormalizer::class) |
95 | 97 | ->args([param('kernel.debug')]) |
96 | | - ->tag('serializer.normalizer', ['priority' => '-890']) |
| 98 | + ->tag('serializer.normalizer', ['priority' => -890]) |
97 | 99 |
|
98 | 100 | ->set('serializer.denormalizer.unwrapping', UnwrappingDenormalizer::class) |
99 | 101 | ->args([service('serializer.property_accessor')]) |
100 | | - ->tag('serializer.normalizer', ['priority' => '1000']) |
| 102 | + ->tag('serializer.normalizer', ['priority' => 1000]) |
101 | 103 |
|
102 | 104 | ->set('serializer.normalizer.object', ObjectNormalizer::class) |
103 | 105 | ->args([ |
|
109 | 111 | null, |
110 | 112 | [], |
111 | 113 | ]) |
112 | | - ->tag('serializer.normalizer', ['priority' => '-1000']) |
| 114 | + ->tag('serializer.normalizer', ['priority' => -1000]) |
113 | 115 |
|
114 | 116 | ->alias(ObjectNormalizer::class, 'serializer.normalizer.object') |
115 | 117 |
|
116 | 118 | ->set('serializer.denormalizer.array', ArrayDenormalizer::class) |
117 | | - ->tag('serializer.normalizer', ['priority' => '-990']) |
| 119 | + ->tag('serializer.normalizer', ['priority' => -990]) |
118 | 120 |
|
119 | 121 | // Loader |
120 | 122 | ->set('serializer.mapping.chain_loader', LoaderChain::class) |
|
164 | 166 | // PropertyInfo extractor |
165 | 167 | ->set('property_info.serializer_extractor', SerializerExtractor::class) |
166 | 168 | ->args([service('serializer.mapping.class_metadata_factory')]) |
167 | | - ->tag('property_info.list_extractor', ['priority' => '-999']) |
| 169 | + ->tag('property_info.list_extractor', ['priority' => -999]) |
168 | 170 |
|
169 | 171 | // ErrorRenderer integration |
170 | 172 | ->alias('error_renderer', 'error_renderer.serializer') |
|
0 commit comments