On 21.02.2011, at 18:36, Lukas Kahwe Smith wrote:
>
> On 21.02.2011, at 08:22, Lukas Kahwe Smith wrote:
>
>>
>>>> I was also suggesting to remove support for returning anything but a
>>>> Response, but i guess keystoke haters wouldnt like that :)
>>>
>>> This has nothing to do with keystrokes.
>>
>> if its not about keystrokes why are we using event for this? why not use a
>> custom Response class that receives the parameter array and reads out the
>> annotations? an event really only makes sense if you expect zero to multiple
>> subscribers. but the franeworkextra using controllers really expect exactly
>> one subscriber.
>
>
> saw you switched to notifyUntil():
> https://github.com/symfony/symfony/commit/fc372bc217385dc5130989150e979537140771a3
>
> think this is better than before, but I still disagree with this entire
> concept. the same functionality of frameworkextrabundle could be achieved
> with a Response subclass and it would be a much cleaner design.
ok noticing that i still have trouble accepting core.view. so sure, some people
like magic which lets them type less. so if its too much trouble to type a use
statement and a return statement in each action, can we at least require these
people to extend from base class that adds a few helpers so that they can then
simply do:
return $this->doMagic(array('name' => $name));
instead of
return array('name' => $name);
of they really hate typing that much, they can also just do:
return $this['m'] = array('name' => $name);
i just don't get why we would accept mixed return values from Controller
actions. its just insanely ugly and inconsistent right at the very core of
Symfony2.
regards,
Lukas Kahwe Smith
[email protected]
--
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