Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 494b4a4

Browse files
committed
minor #17114 [Serializer] Make metadata interfaces internal (dunglas)
This PR was merged into the 2.7 branch. Discussion ---------- [Serializer] Make metadata interfaces internal | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #17113 (comment) | License | MIT | Doc PR | n/a Introducing such interfaces was a (my) mistake. Serializer metadata are value objects. Nobody will (nor should) implement these interfaces. Composition is better for "extending" metadata. They were not marked as `@api` and should now be marked as `@internal` (or even deprecated but it will cause some maintenance headaches). Commits ------- 3f6cfcd [Serializer] Make metadata interfaces internal
2 parents 1230eab + 3f6cfcd commit 494b4a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Component/Serializer/Mapping/AttributeMetadataInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*
1717
* Primarily, the metadata stores serialization groups.
1818
*
19+
* @internal
20+
*
1921
* @author Kévin Dunglas <[email protected]>
2022
*/
2123
interface AttributeMetadataInterface

src/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*
1919
* There may only exist one metadata for each attribute according to its name.
2020
*
21+
* @internal
22+
*
2123
* @author Kévin Dunglas <[email protected]>
2224
*/
2325
interface ClassMetadataInterface

0 commit comments

Comments
 (0)