Le 14/01/2011 19:59, Michal_V a écrit :
Is custom UserProvider configuration supported in Sf2 Security that is
not based on Doctrine entity but based on custom DAO class returning
user objects? Use case is if application uses DBAL but not ORM thus
can not use built in Doctrine UserProvider.
Something like:
security.config:
providers:
main:
provider: { class: Application:UserBundle:MyUserProvider }
#implements UserProviderInterface
Thanks
Michal
To use your own class as a UserProvider (when it is not the repository)
you have to define it as a service and then use
security.config:
providers:
main:
id: myapp.provider
where myapp.provider is the id of the service
Regards
--
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