services:
  _defaults:
    public: true

  doctrine.cache.adapter:
    class: Symfony\Component\Cache\Adapter\FilesystemAdapter
    arguments:
      - ''
      - 0
      - "%kernel.cache_dir%/doctrine"

  doctrine.cache.provider:
    class: Symfony\Component\Cache\DoctrineProvider
    arguments:
      - "@doctrine.cache.adapter"

  main.warmer.cache_warmer:
    class: PrestaShopBundle\Cache\CacheWarmer
    arguments:
      - "@filesystem"
    tags:
      - { name: kernel.cache_warmer }

  prestashop.cache.refresh:
    class: PrestaShopBundle\Service\Cache\Refresh
    arguments:
      - "@kernel"
    calls:
      - [ addCacheClear, [ ] ]
