orm.xml 1.3 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  3. <services>
  4. <service id="sonata.user.orm.user_manager" class="Sonata\UserBundle\Entity\UserManager" public="false">
  5. <argument type="service" id="security.encoder_factory"/>
  6. <argument type="service" id="fos_user.util.username_canonicalizer"/>
  7. <argument type="service" id="fos_user.util.email_canonicalizer"/>
  8. <argument type="service" id="fos_user.entity_manager"/>
  9. <argument>%fos_user.model.user.class%</argument>
  10. </service>
  11. <service id="sonata.user.manager.user" class="Sonata\UserBundle\Entity\UserManagerProxy">
  12. <argument>%fos_user.model.user.class%</argument>
  13. <argument type="service" id="doctrine"/>
  14. <argument type="service" id="sonata.user.orm.user_manager"/>
  15. </service>
  16. <service id="sonata.user.orm.group_manager" class="Sonata\UserBundle\Entity\GroupManager" public="false">
  17. <argument type="service" id="fos_user.entity_manager"/>
  18. <argument>%fos_user.model.group.class%</argument>
  19. </service>
  20. </services>
  21. </container>