services:
    oro_shipping.mass_action.status.enable:
        class: 'Oro\Bundle\RuleBundle\Datagrid\Extension\MassAction\Actions\StatusEnableMassAction'
        arguments:
            - 'oro_shipping.mass_action.status_handler'
            - 'oro_status_shipping_rule_massaction'
            - true
        shared: false
        tags:
            - { name: oro_datagrid.extension.mass_action.type, type: shippingruleenable }

    oro_shipping.mass_action.status.disable:
        class: 'Oro\Bundle\RuleBundle\Datagrid\Extension\MassAction\Actions\StatusEnableMassAction'
        arguments:
            - 'oro_shipping.mass_action.status_handler'
            - 'oro_status_shipping_rule_massaction'
            - false
        shared: false
        tags:
            - { name: oro_datagrid.extension.mass_action.type, type: shippingruledisable }

    oro_shipping.mass_action.status_handler:
        class: 'Oro\Bundle\RuleBundle\Datagrid\Extension\MassAction\StatusMassActionHandler'
        public: true
        arguments:
            - 'oro.shipping.datagrid.status.success_message'
            - 'OroShippingBundle:ShippingMethodsConfigsRule'
            - '@doctrine.orm.entity_manager'
            - '@translator'
