parameters:
    oro_action.cache.clearer.class: Oro\Bundle\ActionBundle\Cache\CacheClearer
    oro_action.cache.warmer.class: Oro\Bundle\ActionBundle\Cache\CacheWarmer

services:
    oro_action.cache.provider.operations:
        parent: oro.cache.abstract
        public: false
        calls:
            - [ setNamespace, [ 'oro_action_operations' ] ]

    oro_action.cache.provider.action_groups:
        parent: oro.cache.abstract
        public: false
        calls:
            - [ setNamespace, [ 'oro_action_groups' ] ]

    oro_action.cache.clearer:
        class: %oro_action.cache.clearer.class%
        public: false
        calls:
            - [addProvider, ['@oro_action.configuration.provider.operations']]
            - [addProvider, ['@oro_action.configuration.provider.action_groups']]
        tags:
            - { name: kernel.cache_clearer }

    oro_action.cache.warmer:
        class: %oro_action.cache.warmer.class%
        public: false
        calls:
            - [addProvider, ['@oro_action.configuration.provider.operations']]
            - [addProvider, ['@oro_action.configuration.provider.action_groups']]
        tags:
            - { name: kernel.cache_warmer }
