AS i said, i just copied the controller methods and that has get/has in it. 
Without it the Util doesnt need controller injection.

On Thu, 23 Jun 2011 13:00:03 +0200
Lukas Kahwe Smith <[email protected]> wrote:

> 
> On 23.06.2011, at 12:13, Michel Salib wrote:
> 
> > Your idea is some kind of ingenious.
> > 
> > But as long as I know the idea of using the controller as a service is to 
> > avoid the "bad practice" of injecting the container itself, and using the 
> > Util class just move the bad practice to another class. So I don't see any 
> > benefit of using this method against the base-class practice.
> > 
> > Maybe I am missing something.
> 
> I agree, the helper service would only make sense if it wouldnt use container 
> injection.
> 
> 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
> 

-- 
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

Reply via email to