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] Add example of Requirement enum#20409

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

Conversation

alamirault
Copy link
Contributor

Requirement Enum values are not cases but constants.

So in YAML routing format we must use!php/const instead of!php/enum.

This PR add examples to how to use the "Requirement enum"

Can you confirm constants are not supported in XML format for routing ? (if not, maybe we can make PR likesymfony/symfony#58035 cc@alexandre-daubois)

@javiereguiluz
Copy link
Member

Yes, this is a bit confusing. But your example will make things much more clear. Thanks Antoine!

@javiereguiluzjaviereguiluz merged commit4a27315 intosymfony:6.4Nov 27, 2024
3 checks passed
@alamiraultalamirault deleted the feature/45528-requirement-enum-example branchNovember 28, 2024 17:05
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

3 participants
@alamirault@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp