File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -997,10 +997,12 @@ Priority Parameter
997
997
998
998
The ``priority `` parameter was introduced in Symfony 5.1
999
999
1000
- Symfony evaluates routes in the order they are defined. So a routing pattern
1001
- that matches many routes might prevent subsequent routes to be matched. In YAML
1002
- and XML you can control the order by moving the routes up or down inside the file.
1003
- For annotations and attributes, there is an optional ``priority `` parameter:
1000
+ Symfony evaluates routes in the order they are defined. If the path of a route
1001
+ matches many different patterns, it might prevent other routes from being
1002
+ matched. In YAML and XML you can move the route definitions up or down in the
1003
+ configuration file to control their priority. In routes defined as PHP
1004
+ annotations or attributes this is much harder to do, so you can set the
1005
+ optional ``priority `` parameter in those routes to control their priority:
1004
1006
1005
1007
.. configuration-block ::
1006
1008
You can’t perform that action at this time.
0 commit comments