api_form.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.api.form.type.group" class="Sonata\UserBundle\Form\Type\ApiGroupType">
  5. <tag name="form.type" alias="sonata_user_api_form_group"/>
  6. <argument type="service" id="jms_serializer.metadata_factory"/>
  7. <argument type="service" id="doctrine"/>
  8. <argument>sonata_user_api_form_group</argument>
  9. <argument>%sonata.user.admin.group.entity%</argument>
  10. <argument>sonata_api_write</argument>
  11. </service>
  12. <service id="sonata.user.api.form.type.user" class="Sonata\UserBundle\Form\Type\ApiUserType">
  13. <tag name="form.type" alias="sonata_user_api_form_user"/>
  14. <argument type="service" id="jms_serializer.metadata_factory"/>
  15. <argument type="service" id="doctrine"/>
  16. <argument>sonata_user_api_form_user</argument>
  17. <argument>%sonata.user.admin.user.entity%</argument>
  18. <argument>sonata_api_write</argument>
  19. </service>
  20. </services>
  21. </container>