@@ -101,11 +101,9 @@ Fabien!``).
101
101
Configuration
102
102
~~~~~~~~~~~~~
103
103
104
- Symfony2 routes the request to your code by using a configuration file.
105
-
106
- All Symfony2 configuration files can be written in PHP, XML or `YAML`_(YAML is
107
- a simple format that makes the description of configuration settings
108
- straightforward).
104
+ Symfony2 configuration files can be written in PHP, XML or `YAML `_. The
105
+ different types are compatible and may be used interchangeably within an
106
+ application.
109
107
110
108
.. tip ::
111
109
@@ -119,7 +117,8 @@ straightforward).
119
117
Routing
120
118
~~~~~~~
121
119
122
- So, Symfony2 routes the request by reading the routing configuration file:
120
+ Symfony2 routes the request to your code by using a configuration file. Here
121
+ are a few examples of the routing configuration file for our application:
123
122
124
123
.. configuration-block ::
125
124
@@ -163,9 +162,14 @@ So, Symfony2 routes the request by reading the routing configuration file:
163
162
164
163
return $collection;
165
164
166
- The first few lines of the routing configuration file define the code called
167
- when the user requests the "``/ ``" resource. More interesting is the last
168
- part, which imports another routing configuration file that reads as follows:
165
+ The first few lines of the routing configuration file define the code that is
166
+ executed when the user requests the "``/ ``" resource.
167
+
168
+ .. tip ::
169
+
170
+ If you're comfortable with routing, have a look at the last directive of
171
+ the configuration file. Symfony2 can include routing information from
172
+ other bundles.
169
173
170
174
.. configuration-block ::
171
175
@@ -203,7 +207,7 @@ part, which imports another routing configuration file that reads as follows:
203
207
204
208
return $collection;
205
209
206
- Here we go! As you can see, the "``/hello/{name} ``" resource pattern (a string
210
+ As you can see, the "``/hello/{name} ``" resource pattern (a string
207
211
enclosed in curly brackets like ``{name} `` is a placeholder) is mapped to a
208
212
controller, referenced by the ``_controller `` value.
209
213
0 commit comments