group.xml 1.4 KB

12345678910111213141516171819202122232425262728293031
  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.group.form" factory-method="createNamed" factory-service="form.factory" class="Symfony\Component\Form\Form">
  7. <argument>%fos_user.group.form.name%</argument>
  8. <argument>%fos_user.group.form.type%</argument>
  9. <argument>null</argument>
  10. <argument type="collection">
  11. <argument key="validation_groups">%fos_user.group.form.validation_groups%</argument>
  12. </argument>
  13. </service>
  14. <service id="fos_user.group.form.type" class="FOS\UserBundle\Form\Type\GroupFormType">
  15. <tag name="form.type" alias="fos_user_group" />
  16. <argument>%fos_user.model.group.class%</argument>
  17. </service>
  18. <service id="fos_user.group.form.handler.default" class="FOS\UserBundle\Form\Handler\GroupFormHandler" scope="request" public="false">
  19. <argument type="service" id="fos_user.group.form" />
  20. <argument type="service" id="request" />
  21. <argument type="service" id="fos_user.group_manager" />
  22. </service>
  23. </services>
  24. </container>