Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Serializer] UseNormalizerInterface instead ofObjectNormalizer#18779

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
OskarStark merged 1 commit intosymfony:6.3frommtarld:fix/custom-normalizer
Oct 10, 2023

Conversation

mtarld
Copy link
Contributor

As mentioned insymfony/maker-bundle#1252 (comment), the documentation is telling to use a concrete implementation of theNormalizerInteface.
This is not the best in terms of OOP, and moreover doesn't work since Symfony 6.1 and the introduction ofTraceableNormalizer.

@carsonbotcarsonbot added this to the6.4 milestoneAug 22, 2023
@mtarldmtarld changed the base branch from6.4 to6.3August 22, 2023 07:06

class TopicNormalizer implements NormalizerInterface
{
public function __construct(
private UrlGeneratorInterface $router,
privateObjectNormalizer $normalizer,
privateNormalizerInterface $normalizer,

Choose a reason for hiding this comment

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

I think this leads to a cyclic dependency, if I remember correctly when I documented something similar 🤔 You may base yourself on those ones I think!

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Indeed, if forgot about that part, I copied the#18602 PR contents, thanks!
Btw, this is deprecated since 6.1 (and not 6.4), should we update the 6.4 branch as well?

Choose a reason for hiding this comment

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

I'd say yes, I guess thismay be managed during upmerge?

mtarld reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes we will handle it while unmerging this PR 👍

mtarld and alexandre-daubois reacted with thumbs up emoji
@mtarldmtarldforce-pushed thefix/custom-normalizer branch frome4c705b to07280cdCompareAugust 22, 2023 12:58
@OskarStarkOskarStark changed the title[Serializer] Use NormalizerInterface instead of ObjectNormalizer[Serializer] UseNormalizerInterface instead ofObjectNormalizerAug 24, 2023
@javiereguiluz
Copy link
Member

@OskarStark if you think this is ready, please merge it. I don't feel confident merging things related to the serializer. Thanks!

@mtarldmtarldforce-pushed thefix/custom-normalizer branch from07280cd to3e9af1bCompareOctober 7, 2023 10:17
@OskarStark
Copy link
Contributor

Thank you@mtarld.

@OskarStarkOskarStark merged commiteaf4fe4 intosymfony:6.3Oct 10, 2023
@mtarldmtarld deleted the fix/custom-normalizer branchOctober 10, 2023 14:25
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@alexandre-dauboisalexandre-dauboisalexandre-daubois left review comments

@OskarStarkOskarStarkOskarStark approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
6.3
Development

Successfully merging this pull request may close these issues.

5 participants
@mtarld@javiereguiluz@OskarStark@alexandre-daubois@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp