You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #20409 [Routing] Add example of Requirement enum (alamirault)
This PR was merged into the 6.4 branch.
Discussion
----------
[Routing] Add example of Requirement enum
[Requirement Enum](https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/Routing/Requirement/Requirement.php) 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 like symfony/symfony#58035 cc `@alexandre`-daubois)
Commits
-------
ebfa5e2 [Routing] Add example of Requirement enum
0 commit comments