services.yml 523B

12345678910111213141516171819
  1. parameters:
  2. image.handling.class: Gregwar\ImageBundle\Services\ImageHandling
  3. image.handler.class: Gregwar\ImageBundle\ImageHandler
  4. services:
  5. # Image handling factory
  6. image.handling:
  7. class: %image.handling.class%
  8. arguments: [%gregwar_image.cache_dir%, %image.handler.class%, @service_container]
  9. # Helper Twig
  10. twig.extension.image:
  11. class: Gregwar\ImageBundle\Extensions\ImageTwig
  12. arguments: [@service_container]
  13. tags:
  14. - { name: twig.extension }