Le 25/10/2011 13:19, rihad a écrit :
On Oct 24, 4:38 pm, Lukas Kahwe Smith<m...@pooteeweet.org>  wrote:
its there to ease development by providing methods for common tasks. its not 
about giving you auto completed access for every possible service,
Router is not some possible service, it's a generic term to describe a
feature of core Symfony functionality. Thus, it deserves a shortcut
that can be enforced by the compiler early on. No I don't have any
code that relies on that, it's just a design question.

The shortcut exists but cuts things even more by accessing directly the /generate/ method of the router (which is the one needed in controllers) instead of simply having a shortcut to get the router: /Controller::generateUrl/ This works the same than the /Controller::render/ shortcut aliasing /$this->get('templating)->renderResponse(...)/ instead of having a /getTemplating/ method.

--
Christophe | Stof

--
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 symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to