Skip to content

Commit 192b682

Browse files
committed
[component][routing] Small formatting tweaks
1 parent a53350c commit 192b682

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

components/routing.rst

+10-9
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,18 @@ Defining routes
7272

7373
A full route definition can contain up to four parts:
7474

75-
1) The URL pattern route. This is matched against the URL passed to the `RequestContext`,
76-
and can contain named wildcard placeholders (e.g. ``{placeholders}``)
77-
to match dynamic parts in the URL.
75+
1. The URL pattern route. This is matched against the URL passed to the `RequestContext`,
76+
and can contain named wildcard placeholders (e.g. ``{placeholders}``)
77+
to match dynamic parts in the URL.
7878

79-
2) An array of default values. This contains an array of arbitrary values
80-
that will be returned when the request matches the route.
79+
2. An array of default values. This contains an array of arbitrary values
80+
that will be returned when the request matches the route.
8181

82-
3) An array of requirements. These define constraints for the values of the
83-
placeholders as regular expressions.
82+
3. An array of requirements. These define constraints for the values of the
83+
placeholders as regular expressions.
8484

85-
4) An array of options. These contain internal settings for the route
85+
4. An array of options. These contain internal settings for the route and
86+
are the least commonly needed.
8687

8788
Take the following route, which combines several of these ideas::
8889

@@ -141,7 +142,7 @@ with this class via its constructor::
141142

142143
public function __construct($baseUrl = '', $method = 'GET', $host = 'localhost', $scheme = 'http', $httpPort = 80, $httpsPort = 443)
143144

144-
.._components-routing-http-foundation:
145+
.. _components-routing-http-foundation:
145146

146147
Normally you can pass the values from the ``$_SERVER`` variable to populate the
147148
:class:`Symfony\\Component\\Routing\\RequestContext`. But If you use the

0 commit comments

Comments
 (0)