services:
  _defaults:
    public: true

  PrestaShop\PrestaShop\Adapter\AttributeGroup\AttributeGroupViewDataProvider:
    arguments:
      - "@=service('prestashop.adapter.legacy.context').getContext().language.id"
      - '@PrestaShop\PrestaShop\Core\ConfigurationInterface'

  prestashop.adapter.product.attribute_group.attribute_group_view_data_provider:
    alias: PrestaShop\PrestaShop\Adapter\AttributeGroup\AttributeGroupViewDataProvider
    deprecated: ~

  PrestaShop\PrestaShop\Adapter\AttributeGroup\CommandHandler\DeleteAttributeGroupHandler:
    tags:
      - name: 'tactician.handler'
        command: 'PrestaShop\PrestaShop\Core\Domain\AttributeGroup\Command\DeleteAttributeGroupCommand'

  PrestaShop\PrestaShop\Adapter\AttributeGroup\CommandHandler\BulkDeleteAttributeGroupHandler:
    tags:
      - name: 'tactician.handler'
        command: 'PrestaShop\PrestaShop\Core\Domain\AttributeGroup\Command\BulkDeleteAttributeGroupCommand'

  PrestaShop\PrestaShop\Adapter\AttributeGroup\QueryHandler\GetAttributeGroupListHandler:
    arguments:
      - '@PrestaShop\PrestaShop\Adapter\Attribute\Repository\AttributeRepository'
      - '@PrestaShop\PrestaShop\Adapter\AttributeGroup\Repository\AttributeGroupRepository'
    tags:
      - name: 'tactician.handler'
        command: 'PrestaShop\PrestaShop\Core\Domain\AttributeGroup\Query\GetAttributeGroupList'

  PrestaShop\PrestaShop\Adapter\Product\AttributeGroup\QueryHandler\GetProductAttributeGroupsHandler:
    autowire: true
    public: false
    tags:
      - name: 'tactician.handler'
        command: 'PrestaShop\PrestaShop\Core\Domain\Product\AttributeGroup\Query\GetProductAttributeGroups'

  PrestaShop\PrestaShop\Adapter\AttributeGroup\Repository\AttributeGroupRepository:
    arguments:
      - '@doctrine.dbal.default_connection'
      - '%database_prefix%'
