route.xml 1.4 KB

123456789101112131415161718192021222324
  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.route.path_info" class="Sonata\AdminBundle\Route\PathInfoBuilder">
  5. <argument type="service" id="sonata.admin.audit.manager"/>
  6. </service>
  7. <service id="sonata.admin.route.query_string" class="Sonata\AdminBundle\Route\QueryStringBuilder">
  8. <argument type="service" id="sonata.admin.audit.manager"/>
  9. </service>
  10. <service id="sonata.admin.route.default_generator" class="Sonata\AdminBundle\Route\DefaultRouteGenerator">
  11. <argument type="service" id="router"/>
  12. <argument type="service" id="sonata.admin.route.cache"/>
  13. </service>
  14. <service id="sonata.admin.route.cache" class="Sonata\AdminBundle\Route\RoutesCache">
  15. <argument>%kernel.cache_dir%/sonata/admin</argument>
  16. <argument>%kernel.debug%</argument>
  17. </service>
  18. <service id="sonata.admin.route.cache_warmup" class="Sonata\AdminBundle\Route\RoutesCacheWarmUp">
  19. <argument type="service" id="sonata.admin.route.cache"/>
  20. <argument type="service" id="sonata.admin.pool"/>
  21. <tag name="kernel.cache_warmer"/>
  22. </service>
  23. </services>
  24. </container>