File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ instance, if you want to match both ``m.example.com`` and
194
194
mobile_homepage :
195
195
path : /
196
196
host : " m.{domain}"
197
- defaults : { _controller: AcmeDemoBundle:Main:mobileHomepage }
198
- requirements :
197
+ defaults :
198
+ _controller : AcmeDemoBundle:Main:mobileHomepage
199
199
domain : " %domain%"
200
200
201
201
homepage :
@@ -212,7 +212,7 @@ instance, if you want to match both ``m.example.com`` and
212
212
213
213
<route id =" mobile_homepage" path =" /" host =" m.example.com" >
214
214
<default key =" _controller" >AcmeDemoBundle:Main:mobileHomepage</default >
215
- <requirement key =" domain" >%domain%</requirement >
215
+ <default key =" domain" >%domain%</requirement >
216
216
</route >
217
217
218
218
<route id =" homepage" path =" /" >
@@ -228,8 +228,8 @@ instance, if you want to match both ``m.example.com`` and
228
228
$collection = new RouteCollection();
229
229
$collection->add('mobile_homepage', new Route('/', array(
230
230
'_controller' => 'AcmeDemoBundle:Main:mobileHomepage',
231
- ), array(
232
231
'domain' => '%domain%',
232
+ ), array(
233
233
), array(), 'm.{domain}'));
234
234
235
235
$collection->add('homepage', new Route('/', array(
You can’t perform that action at this time.
0 commit comments