controller.xml 2.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" ?>
  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. <parameters>
  6. <parameter key="assetic.controller.class">Symfony\Bundle\AsseticBundle\Controller\AsseticController</parameter>
  7. <parameter key="assetic.routing_loader.class">Symfony\Bundle\AsseticBundle\Routing\AsseticLoader</parameter>
  8. <parameter key="assetic.cache.class">Assetic\Cache\FilesystemCache</parameter>
  9. <parameter key="assetic.use_controller_worker.class">Symfony\Bundle\AsseticBundle\Factory\Worker\UseControllerWorker</parameter>
  10. <parameter key="assetic.request_listener.class">Symfony\Bundle\AsseticBundle\EventListener\RequestListener</parameter>
  11. </parameters>
  12. <services>
  13. <service id="assetic.routing_loader" class="%assetic.routing_loader.class%" public="false">
  14. <tag name="routing.loader" />
  15. <argument type="service" id="assetic.asset_manager" />
  16. </service>
  17. <service id="assetic.controller" class="%assetic.controller.class%" scope="prototype">
  18. <argument type="service" id="request" />
  19. <argument type="service" id="assetic.asset_manager" />
  20. <argument type="service" id="assetic.cache" />
  21. </service>
  22. <service id="assetic.cache" class="%assetic.cache.class%" public="false">
  23. <argument>%assetic.cache_dir%/assets</argument>
  24. </service>
  25. <service id="assetic.use_controller_worker" class="%assetic.use_controller_worker.class%" public="false">
  26. <tag name="assetic.factory_worker" />
  27. </service>
  28. <service id="assetic.request_listener" class="%assetic.request_listener.class%">
  29. <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" />
  30. </service>
  31. </services>
  32. </container>