Skip to content

Commit c975d5d

Browse files
committed
Minor reword
1 parent 073cc12 commit c975d5d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

routing.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -997,10 +997,12 @@ Priority Parameter
997997

998998
The ``priority`` parameter was introduced in Symfony 5.1
999999

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:
10041006

10051007
.. configuration-block::
10061008

0 commit comments

Comments
 (0)