@@ -72,17 +72,18 @@ Defining routes
72
72
73
73
A full route definition can contain up to four parts:
74
74
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.
78
78
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.
81
81
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.
84
84
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.
86
87
87
88
Take the following route, which combines several of these ideas::
88
89
@@ -141,7 +142,7 @@ with this class via its constructor::
141
142
142
143
public function __construct($baseUrl = '', $method = 'GET', $host = 'localhost', $scheme = 'http', $httpPort = 80, $httpsPort = 443)
143
144
144
- .._components-routing-http-foundation:
145
+ .. _components-routing-http-foundation :
145
146
146
147
Normally you can pass the values from the ``$_SERVER `` variable to populate the
147
148
:class: `Symfony\\ Component\\ Routing\\ RequestContext `. But If you use the
0 commit comments