Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #27819 [Serializer] deprecated normalizers and encoders who d…
…ont implement the base interfaces (rodnaph) This PR was merged into the 4.2-dev branch. Discussion ---------- [Serializer] deprecated normalizers and encoders who dont implement the base interfaces | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | None | License | MIT | Doc PR | None Currently the `Serializer` can be constructed with any object regardless of whether or not it implements `NormalizerInterface` or `DenormalizerInterface`. This object will then be ignored when getting a normalizer/denormalizer, so in effect silently ignored for serializer operations. This change throws an exception on construct if a given normalizer object does not implement one of these interfaces - are there use cases where this would not be true? Commits ------- cbc2be8 [Serializer] deprecated normalizers and encoders who dont implement the base interfaces
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters