controller.xml 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <argument>%assetic.enable_profiler%</argument>
  22. <argument type="service" id="profiler" on-invalid="null" />
  23. </service>
  24. <service id="assetic.cache" class="%assetic.cache.class%" public="false">
  25. <argument>%assetic.cache_dir%/assets</argument>
  26. </service>
  27. <service id="assetic.use_controller_worker" class="%assetic.use_controller_worker.class%" public="false">
  28. <tag name="assetic.factory_worker" />
  29. </service>
  30. <service id="assetic.request_listener" class="%assetic.request_listener.class%">
  31. <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" />
  32. </service>
  33. </services>
  34. </container>