Skip to content

Commit

Permalink
feature #58308 [Serializer] Deprecate `AdvancedNameConverterInterface…
Browse files Browse the repository at this point in the history
…` (mtarld)

This PR was merged into the 7.2 branch.

Discussion
----------

[Serializer] Deprecate `AdvancedNameConverterInterface`

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | yes
| Issues        |
| License       | MIT

Deprecate the `AdvancedNameConverterInterface` in favor of `NameConverterInterface` as they'll have the same signature in 8.0

Commits
-------

0a263d00ca [Serializer] Deprecate `AdvancedNameConverterInterface`
  • Loading branch information
fabpot committed Sep 27, 2024
2 parents 324c144 + 8f02a98 commit a446b06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CHANGELOG
* Add support for configuring multiple serializer instances with different
default contexts, name converters, sets of normalizers and encoders
* Add support for collection profiles of multiple serializer instances
* Deprecate `AdvancedNameConverterInterface`, use `NameConverterInterface` instead

7.1
---
Expand Down
2 changes: 2 additions & 0 deletions NameConverter/AdvancedNameConverterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* Gives access to the class, the format and the context in the property name converters.
*
* @author Kévin Dunglas <[email protected]>
*
* @deprecated since Symfony 7.2, use NameConverterInterface instead
*/
interface AdvancedNameConverterInterface extends NameConverterInterface
{
Expand Down

0 comments on commit a446b06

Please sign in to comment.