admin.xml 896 B

123456789101112131415
  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.editable_role_builder" class="Sonata\UserBundle\Security\EditableRolesBuilder">
  5. <argument/>
  6. <argument/>
  7. <argument type="service" id="sonata.admin.pool"/>
  8. <argument>%security.role_hierarchy.roles%</argument>
  9. </service>
  10. <service id="sonata.user.form.type.security_roles" class="Sonata\UserBundle\Form\Type\SecurityRolesType">
  11. <tag name="form.type" alias="sonata_security_roles"/>
  12. <argument type="service" id="sonata.user.editable_role_builder"/>
  13. </service>
  14. </services>
  15. </container>