Le 16/06/2011 10:10, winzou a écrit :
Ok I've define my own service. It works well, as expected. But can you have a look: https://github.com/winzou/AssoManager/commit/b45729baaa7873cb740ab07a8813483b257cac92

It's a lot of code just to override my findUserByUsername($username) method. It must be a easier way but I can't find out.

Any idea?

I don't understand why you are extending the FOSUB UserManager for your class. Just define your own class implementing the UserProviderInterface to have your own provider. And if you really need to use the methods of the UserManager in it, it is easier to inject it in your class instead of extending the class and passing all parameters again.

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

Reply via email to