Le 24/10/2011 08:55, rihad a écrit :
getRequest and getDoctrine are shortcuts defined in the base controller to access them. For the router, the shortcut is defined by a generateUrl() method calling the router. And there is no way to create get* methods for all services in the controller class as the list of services is not known. Each bundle adds new ones.Why the dynamic $url = $this->get('router')->generate(...)Why not getRouter()? A typo can thus be caught at compile time, not at runtime! This concerns all entities in the container. I can see that getRequest()& getDoctrine() do exist.
-- 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 [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
