Skip to content

[Serializer] Re-add AdvancedNameConverterInterface #58307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

mtarld
Copy link
Contributor

@mtarld mtarld commented Sep 18, 2024

Q A
Branch? 7.1
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #58294
License MIT

Re-add AdvancedNameConverterInterface on top of CamelCaseToSnakeCaseNameConverter and MetadataAwareNameConverter.

@mtarld mtarld requested a review from dunglas as a code owner September 18, 2024 16:58
@carsonbot carsonbot added this to the 7.1 milestone Sep 18, 2024
@mtarld mtarld force-pushed the fix/advanced-name-converter-interface-removal branch from f875bdb to 7d989bc Compare September 18, 2024 17:09
@mtarld mtarld force-pushed the fix/advanced-name-converter-interface-removal branch from 7d989bc to 222fb4c Compare September 18, 2024 17:26
@mtarld mtarld changed the title [Serializer] Re-add AdvancedNameConverterInterface as deprecated [Serializer] Re-add AdvancedNameConverterInterface Sep 18, 2024
@@ -19,7 +19,7 @@
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Aurélien Pillevesse <aurelienpillevesse@hotmail.fr>
*/
class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface
class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface, AdvancedNameConverterInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CamelCaseToSnakeCaseNameConverter was not an advanced converter in 7.0 so there is nothing to re-add there, and adding the arguments in the signature natively is a BC break for child classes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, you're right, plus I didn't get all the history of that PR (#53898 (comment)).

I'm going to close that PR, thanks!

@mtarld mtarld closed this Sep 18, 2024
@mtarld mtarld deleted the fix/advanced-name-converter-interface-removal branch November 15, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants