menu.xml 1.9 KB

12345678910111213141516171819202122232425262728293031
  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.admin.menu_builder" class="Sonata\AdminBundle\Menu\MenuBuilder">
  5. <argument type="service" id="sonata.admin.pool"/>
  6. <argument type="service" id="knp_menu.factory"/>
  7. <argument type="service" id="knp_menu.menu_provider"/>
  8. <argument type="service" id="event_dispatcher"/>
  9. </service>
  10. <service id="sonata.admin.sidebar_menu" class="Knp\Menu\MenuItem">
  11. <tag name="knp_menu.menu" alias="sonata_admin_sidebar"/>
  12. </service>
  13. <!--NEXT_MAJOR: Replace empty argument with security.authorization_checker service when bumping requirements to >=Symfony 2.6 -->
  14. <service id="sonata.admin.menu.group_provider" class="Sonata\AdminBundle\Menu\Provider\GroupMenuProvider" public="false">
  15. <argument type="service" id="knp_menu.factory"/>
  16. <argument type="service" id="sonata.admin.pool"/>
  17. <argument/>
  18. <tag name="knp_menu.provider"/>
  19. </service>
  20. <service id="sonata.admin.menu.matcher.voter.admin" class="Sonata\AdminBundle\Menu\Matcher\Voter\AdminVoter">
  21. <tag name="knp_menu.voter" request="true"/>
  22. </service>
  23. <service id="sonata.admin.menu.matcher.voter.children" class="Sonata\AdminBundle\Menu\Matcher\Voter\ChildrenVoter">
  24. <argument type="service" id="knp_menu.matcher"/>
  25. <tag name="knp_menu.voter"/>
  26. </service>
  27. <service id="sonata.admin.menu.matcher.voter.active" class="Sonata\AdminBundle\Menu\Matcher\Voter\ActiveVoter">
  28. <tag name="knp_menu.voter"/>
  29. </service>
  30. </services>
  31. </container>