Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Christophe COEVOET
Le 14/03/2011 10:32, Nikita Korotaev a écrit : Ok, that's clear. However FrameworkExtraBundle was included in the Symfony PR7 and Fabien on Symfony Live in Paris was talking about annotations over Yaml(not mentioning xml). I'm little bit concerned about performance when using annotations: it

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Nikita Korotaev
Ok, that's clear. However FrameworkExtraBundle was included in the Symfony PR7 and Fabien on Symfony Live in Paris was talking about annotations over Yaml(not mentioning xml). I'm little bit concerned about performance when using annotations: it seems to me that all my controllers in the bundl

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Thomas Rabaix
you cannot overwrite information defined in annotation ... On 14 mars 2011, at 10:03, Nikita Korotaev wrote: > My bundle with annotation routing is for personal application. > Why it encourages to use xml in routings for shared bundles? > > -- > If you want to report a vulnerability issue on s

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Christophe COEVOET
Le 14/03/2011 10:03, Nikita Korotaev a écrit : My bundle with annotation routing is for personal application. Why it encourages to use xml in routings for shared bundles? XML is validated throuch XSD. And the annotations for the routing are not a core feature. You need a third-party bundle to

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Nikita Korotaev
My bundle with annotation routing is for personal application. Why it encourages to use xml in routings for shared bundles? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the G

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Thomas Rabaix
If you plan to distribute your bundle, does not use the FrameworkExtraBundle and use the xml routing definition. On 14 mars 2011, at 09:40, Nikita Korotaev wrote: > Hi everyone, > > Recently I've decided to change routes from Yaml declaration to annotations > using FrameworkExtraBundle, which

[symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Nikita Korotaev
Hi everyone, Recently I've decided to change routes from Yaml declaration to annotations using FrameworkExtraBundle, which is now shipped with Symfony2. Previously I was able to link several routes to one action: management__users: pattern: /management/users defaults: { _controller: Ker