Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #45554 [Serializer] Fixed framework.serializer.default_context is…
… not working for JsonEncoder (siganushka) This PR was merged into the 5.4 branch. Discussion ---------- [Serializer] Fixed framework.serializer.default_context is not working for JsonEncoder Fixed `framework.serializer.default_context` is not working for `JsonEncoder` like `XmlEncoder` or `DateTimeNormalizer`, the `array $defaultContext` argument bindings from `SerializerPass`, but not working for `JsonEncoder`, I added `array $defaultContext` argument and passed to `JsonEncode` and `JsonDecode`. https://github.com/symfony/serializer/blob/5.4/DependencyInjection/SerializerPass.php#L69-L75 | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no Commits ------- a76016a [Serializer] Fixed framework.serializer.default_context is not working for JsonEncoder
- Loading branch information