You are browsing a version that has not yet been released.

SecurityBundle integration

A user provider is available for your MongoDB projects, working exactly the same as the entity provider described in the cookbook:

  • YAML
    1security: providers: my_mongo_provider: mongodb: {class: Acme\DemoBundle\Document\User, property: username}
    2
    3
    4
  • XML
    1<!-- app/config/security.xml --> <config> <provider name="my_mongo_provider"> <mongodb class="Acme\DemoBundle\Document\User" property="username" /> </provider> </config>
    2
    3
    4
    5
    6