This. In the future, the community might even consider constructor/setter injection as "normal" instead of using the container which leaves you with less than $this->get('router') if you get what I mean.
On Tue, Oct 25, 2011 at 7:22 PM, Lukas Kahwe Smith <m...@pooteeweet.org>wrote: > > On Oct 25, 2011, at 13:19 , rihad wrote: > > > > > 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. > > > its not a design question as the Controller base class is not about "proper > design" but as a convenience layer, especially for beginners. as such the > decision of what methods to include was essentially focusing on what 80% of > Controllers will need and not about being "consistent" by giving all > internal services the same treatment. > > regards, > Lukas Kahwe Smith > m...@pooteeweet.org > > > > -- > 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 > -- 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