On 21.02.2011, at 07:08, Fabien Potencier <[email protected]> wrote:
> On 2/20/11 11:05 PM, Lukas Kahwe Smith wrote: >> >> On 20.02.2011, at 22:58, Bulat Shakirzyanov wrote: >> >>> Lukas, >>> >>> Perhaps you should familiarize yourself with framework extra bundle. >>> With that bundle, your controller action could simply return array of >>> parameters that get automatically injected into a template resolved from >>> action name by convention. This saves you a lot of typing. I find the event >>> to be very useful. >>> >> >> ah .. i have yet to try out framework extra. reading the docs now: >> http://bundles.symfony-reloaded.org/frameworkextrabundle/ >> thats same scary use of annotations :) > Then, are you suggesting that we remove annotation support for Doctrine and > Validation? Because, frankly, I don't see any difference. sorry if i was unclear. i was suggesting to remove that. especially as its in an external bundle. i am sure it will male Symfony2 more useful to a nber of people. >> still i dont see why it wouldnt be cleaner to still return a response >> containing the dynamic parameters in this case and then simply populate the >> provided instance? > > Can you give us an example of how it would work as I fail to see what you are > proposing. that instead of just returning an arbitrary structure one would return a Response (maybe of a specific type) in which the parameters are stored. return new ViewResponse($array); and that core.view would always be notified to allow centralized managed of the view content. core.response to me is mainly about writing minor details to the Response like a header (cookie f.e.) or even just doing some statistical logging. i dont think one should mess with the content at that point. anyway, it feels very unclean. but if this is intentional to make the convention over configuration symfony 1.x users happy i still dont like it, but i would at least understand the reason for this inconsistency. regards Lukas -- 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 Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
