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

[Routing] Fix default value not taken if usigng name:entity.attribute#62325

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

Open
eltharin wants to merge3 commits intosymfony:7.3
base:7.3
Choose a base branch
Loading
fromeltharin:error_default_route_argument_with_complete_notation

Conversation

@eltharin
Copy link
Contributor

QA
Branch?7.3
Bug fix?yes
New feature?no
Deprecations?no
Issues
LicenseMIT

When using Mapped parameters, default values can't be used :

    #[Route('/zoom/{vortexLibelle:vortex.libelle}/{libelle:otherVortex}', name:'zoom', methods: ['GET'])]    #[AjaxCallOrNot]publicfunctionzoom(VortexManager$vr,Vortex$vortex, ?Vortex$otherVortex =null):Response    {...    }

or

    #[Route('/zoom/{vortexLibelle:vortex.libelle}/{otherVortexLibelle:otherVortex.libelle}', name:'zoom', methods: ['GET'])]    #[AjaxCallOrNot]publicfunctionzoom(VortexManager$vr,Vortex$vortex, ?Vortex$otherVortex =null):Response    {...    }

route was not found if we want to go to : /zoom/myVortex,

with this fix, it's OK

@carsonbotcarsonbot added this to the7.3 milestoneNov 6, 2025
@carsonbotcarsonbot changed the titlecorrect bug for default value not taken if usigng name:entity.attribute correct bug for default value not taken if usigng name:entity.attributeNov 6, 2025
@carsonbotcarsonbot changed the title correct bug for default value not taken if usigng name:entity.attribute[Routing] correct bug for default value not taken if usigng name:entity.attributeNov 6, 2025
@eltharineltharin changed the title[Routing] correct bug for default value not taken if usigng name:entity.attribute[Routing] Fix default value not taken if usigng name:entity.attributeNov 6, 2025
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

what about the logic for backed enums in the previous block? don't we need something similar?

@eltharineltharinforce-pushed theerror_default_route_argument_with_complete_notation branch from6a89ac7 tof5077aaCompareNovember 6, 2025 16:28
@eltharin
Copy link
ContributorAuthor

eltharin commentedNov 6, 2025
edited
Loading

I write on my todolist to allow mapped parameters notation to use BackedEnum::from :)

@eltharineltharinforce-pushed theerror_default_route_argument_with_complete_notation branch froma916fc7 to613acceCompareNovember 6, 2025 16:43
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

7.3

Development

Successfully merging this pull request may close these issues.

4 participants

@eltharin@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp