assetic.xml 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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.asset_factory.class">Symfony\Bundle\AsseticBundle\Factory\AssetFactory</parameter>
  7. <parameter key="assetic.asset_manager.class">Assetic\Factory\LazyAssetManager</parameter>
  8. <parameter key="assetic.asset_manager_cache_warmer.class">Symfony\Bundle\AsseticBundle\CacheWarmer\AssetManagerCacheWarmer</parameter>
  9. <parameter key="assetic.cached_formula_loader.class">Assetic\Factory\Loader\CachedFormulaLoader</parameter>
  10. <parameter key="assetic.config_cache.class">Assetic\Cache\ConfigCache</parameter>
  11. <parameter key="assetic.config_loader.class">Symfony\Bundle\AsseticBundle\Factory\Loader\ConfigurationLoader</parameter>
  12. <parameter key="assetic.config_resource.class">Symfony\Bundle\AsseticBundle\Factory\Resource\ConfigurationResource</parameter>
  13. <parameter key="assetic.coalescing_directory_resource.class">Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource</parameter>
  14. <parameter key="assetic.directory_resource.class">Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource</parameter>
  15. <parameter key="assetic.filter_manager.class">Symfony\Bundle\AsseticBundle\FilterManager</parameter>
  16. <parameter key="assetic.worker.ensure_filter.class">Assetic\Factory\Worker\EnsureFilterWorker</parameter>
  17. <parameter key="assetic.node.paths" type="collection"></parameter>
  18. <parameter key="assetic.cache_dir">%kernel.cache_dir%/assetic</parameter>
  19. </parameters>
  20. <services>
  21. <!-- managers -->
  22. <service id="assetic.filter_manager" class="%assetic.filter_manager.class%">
  23. <argument type="service" id="service_container" />
  24. <argument type="collection"></argument>
  25. </service>
  26. <service id="assetic.asset_manager" class="%assetic.asset_manager.class%">
  27. <argument type="service" id="assetic.asset_factory" />
  28. <argument type="collection"></argument>
  29. </service>
  30. <service id="assetic.asset_factory" class="%assetic.asset_factory.class%" public="false">
  31. <argument type="service" id="kernel" />
  32. <argument type="service" id="service_container" />
  33. <argument type="service" id="assetic.parameter_bag" />
  34. <argument>%assetic.read_from%</argument>
  35. <argument>%assetic.debug%</argument>
  36. </service>
  37. <service id="assetic.config_loader" class="%assetic.config_loader.class%" public="false">
  38. <tag name="assetic.formula_loader" alias="config" />
  39. </service>
  40. <service id="assetic.config_resource" class="%assetic.config_resource.class%" public="false">
  41. <tag name="assetic.formula_resource" loader="config" />
  42. <argument type="collection" /> <!-- configured formulae -->
  43. </service>
  44. <service id="assetic.config_cache" class="%assetic.config_cache.class%" public="false">
  45. <argument>%assetic.cache_dir%/config</argument>
  46. </service>
  47. <service id="assetic.asset_manager_cache_warmer" class="%assetic.asset_manager_cache_warmer.class%" public="false">
  48. <tag name="kernel.cache_warmer" priority="10" />
  49. <argument type="service" id="service_container" />
  50. </service>
  51. <service id="assetic.worker.ensure_filter" class="%assetic.worker.ensure_filter.class%" abstract="true" public="false">
  52. <argument /> <!-- pattern -->
  53. <argument /> <!-- filter -->
  54. </service>
  55. <service id="assetic.parameter_bag" class="Symfony\Component\DependencyInjection\ParameterBag\ParameterBag" public="false">
  56. <argument type="service" id="assetic.parameters" />
  57. </service>
  58. <service id="assetic.parameters" class="stdClass" factory-service="service_container" factory-method="getDefaultParameters" public="false" />
  59. </services>
  60. </container>