bug #39672 [FrameworkBundle] Fix UidNormalizer priority (fancyweb)
This PR was merged into the 5.2 branch.
Discussion
----------
[FrameworkBundle] Fix UidNormalizer priority
| Q | A
| ------------- | ---
| Branch? | 5.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
`AbstractUid` implements `\JsonSerializable`. `JsonSerializableNormalizer` has a priority of `-900`, so it's actually this normalizer that is used instead of the good one. It does not change the result but it adds an extra layer.
Commits
-------
1c652a7649
[FrameworkBundle] Fix UidNormalizer priority
This commit is contained in:
commit
85af7a2974
@ -109,7 +109,7 @@ return static function (ContainerConfigurator $container) {
|
||||
->tag('serializer.normalizer', ['priority' => 1000])
|
||||
|
||||
->set('serializer.normalizer.uid', UidNormalizer::class)
|
||||
->tag('serializer.normalizer', ['priority' => -915])
|
||||
->tag('serializer.normalizer', ['priority' => -890])
|
||||
|
||||
->set('serializer.normalizer.form_error', FormErrorNormalizer::class)
|
||||
->tag('serializer.normalizer', ['priority' => -915])
|
||||
|
Reference in New Issue
Block a user