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
…rst (nicwortel)
This PR was merged into the 6.1 branch.
Discussion
----------
[Routing] Document the Requirement constants in routing.rst
Fixes#16718symfony/symfony#45528 by `@fancyweb` introduced the `Symfony\Component\Routing\Requirement\Requirement` enum in Symfony 6.1, as a solution for symfony/symfony#26524.
It was blogged about in https://symfony.com/blog/new-in-symfony-6-1-improved-routing-requirements-and-utf-8-parameters, but I couldn't find it anywhere in the Routing documentation.
This PR adds a small hint about the use of the `Requirement` enum for common route requirements:

I'm open for suggestions to further improve this. I decided to use a small info block instead without code examples, because it doesn't seem to be a big feature and I'm not sure how well it is supported across all configuration formats. Let me know if you would like to see some code examples.
Commits
-------
571647d Document the Requirement constants in routing.rst
The text was updated successfully, but these errors were encountered: