services:
  _defaults:
    public: true

  # Command handlers

  prestashop.adapter.manufacturer.manufacturer_logo_thumbnail_provider:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\ManufacturerLogoThumbnailProvider'
    arguments:
      - '@prestashop.core.image.parser.image_tag_source_parser'

  prestashop.adapter.manufacturer.command_handler.toggle_manufacturer_status_handler:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\ToggleManufacturerStatusHandler'
    tags:
      - { name: 'tactician.handler', command: 'PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\ToggleManufacturerStatusCommand' }

  prestashop.adapter.manufacturer.command_handler.bulk_toggle_manufacturer_status_handler:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\BulkToggleManufacturerStatusHandler'
    tags:
      - { name: 'tactician.handler', command: 'PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\BulkToggleManufacturerStatusCommand' }

  prestashop.adapter.manufacturer.command_handler.delete_manufacturer_handler:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\DeleteManufacturerHandler'
    tags:
      - { name: 'tactician.handler', command: 'PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\DeleteManufacturerCommand' }

  prestashop.adapter.manufacturer.command_handler.delete_manufacturer_logo_image_handler:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\DeleteManufacturerLogoImageHandler'
    arguments:
      - !php/const _PS_MANU_IMG_DIR_
      - !php/const _PS_TMP_IMG_DIR_
    tags:
      - name: tactician.handler
        command: 'PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\DeleteManufacturerLogoImageCommand'

  prestashop.adapter.manufacturer.command_handler.bulk_delete_manufacturer_handler:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\BulkDeleteManufacturerHandler'
    tags:
      - { name: 'tactician.handler', command: 'PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\BulkDeleteManufacturerCommand' }

  prestashop.adapter.manufacturer.query_handler.get_manufacturer_for_editing:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\QueryHandler\GetManufacturerForEditingHandler'
    arguments:
      - '@prestashop.core.image.parser.image_tag_source_parser'
    tags:
      - name: tactician.handler
        command: 'PrestaShop\PrestaShop\Core\Domain\Manufacturer\Query\GetManufacturerForEditing'

  prestashop.adapter.manufacturer.command_handler.edit_manufacturer_handler:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\EditManufacturerHandler'
    tags:
      - name: tactician.handler
        command: 'PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\EditManufacturerCommand'

  prestashop.adapter.manufacturer.command_handler.add_manufacturer_handler:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\AddManufacturerHandler'
    tags:
      - name: tactician.handler
        command: 'PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\AddManufacturerCommand'

  prestashop.adapter.manufacturer.query_handler.get_manufacturer_for_viewing_handler:
    class: 'PrestaShop\PrestaShop\Adapter\Manufacturer\QueryHandler\GetManufacturerForViewingHandler'
    tags:
      - name: tactician.handler
        command: PrestaShop\PrestaShop\Core\Domain\Manufacturer\Query\GetManufacturerForViewing

  PrestaShop\PrestaShop\Adapter\Manufacturer\Repository\ManufacturerRepository: ~
