mongodb.xml 1.2 KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <services>
  6. <service id="fos_user.user_manager.default" class="FOS\UserBundle\Doctrine\UserManager" public="false">
  7. <argument type="service" id="security.encoder_factory" />
  8. <argument type="service" id="fos_user.util.username_canonicalizer" />
  9. <argument type="service" id="fos_user.util.email_canonicalizer" />
  10. <argument type="service" id="fos_user.document_manager" />
  11. <argument>%fos_user.model.user.class%</argument>
  12. </service>
  13. <service id="fos_user.document_manager" factory-service="doctrine_mongodb" factory-method="getManager" class="Doctrine\ODM\MongoDB\DocumentManager" public="false">
  14. <argument>%fos_user.model_manager_name%</argument>
  15. </service>
  16. <service id="fos_user.user_listener" class="FOS\UserBundle\Document\UserListener" public="false">
  17. <argument type="service" id="service_container" />
  18. </service>
  19. </services>
  20. </container>