WARNING: You are browsing the documentation for version 4.0 which is not maintained anymore. If some of your projects are still using this version, consider upgrading.

SecurityBundle integration

SecurityBundle integrationΒΆ

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

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

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.