0

I am not able to find what are the other options for providers in Symfony security

e,g

This link http://symfony.com/doc/current/cookbook/security/custom_provider.html

says that

security:
    providers:
        webservice:
            id: webservice_user_provider

Now I know that id is the service id of the class which implements UserProviderInterface

But what is webservice here, how can I get it?

What is the diff between this code and the code above

providers:
        administrators:
            entity: { class: AcmeUserBundle:User}

I am confused whether I need to use User as Entity there or UserManager which implements UserProviderInterface there

cokeman19
  • 2,405
  • 1
  • 25
  • 40
Mirage
  • 30,868
  • 62
  • 166
  • 261

1 Answers1

0

You have missed a step. And second example is the configuration of EntityUserProvider.

Mun Mun Das
  • 14,992
  • 2
  • 44
  • 43