@@ -194,8 +194,8 @@ instance, if you want to match both ``m.example.com`` and
194194mobile_homepage :
195195path :/
196196host :" m.{domain}"
197- defaults :{ _controller: AcmeDemoBundle:Main:mobileHomepage }
198- requirements :
197+ defaults :
198+ _controller : AcmeDemoBundle:Main:mobileHomepage
199199domain :" %domain%"
200200
201201homepage :
@@ -212,7 +212,7 @@ instance, if you want to match both ``m.example.com`` and
212212
213213 <route id =" mobile_homepage" path =" /" host =" m.example.com" >
214214 <default key =" _controller" >AcmeDemoBundle:Main:mobileHomepage</default >
215- <requirement key =" domain" >%domain%</requirement >
215+ <default key =" domain" >%domain%</requirement >
216216 </route >
217217
218218 <route id =" homepage" path =" /" >
@@ -228,8 +228,8 @@ instance, if you want to match both ``m.example.com`` and
228228 $collection = new RouteCollection();
229229 $collection->add('mobile_homepage', new Route('/', array(
230230 '_controller' => 'AcmeDemoBundle:Main:mobileHomepage',
231- ), array(
232231 'domain' => '%domain%',
232+ ), array(
233233 ), array(), 'm.{domain}'));
234234
235235 $collection->add('homepage', new Route('/', array(