services:
  _defaults:
    public: true

  PrestaShop\PrestaShop\Adapter\Feature\CommandHandler\AddFeatureHandler:
    tags:
      - name: tactician.handler
        command: PrestaShop\PrestaShop\Core\Domain\Feature\Command\AddFeatureCommand

  PrestaShop\PrestaShop\Adapter\Feature\CommandHandler\EditFeatureHandler:
    tags:
      - name: tactician.handler
        command: PrestaShop\PrestaShop\Core\Domain\Feature\Command\EditFeatureCommand

  PrestaShop\PrestaShop\Adapter\Feature\QueryHandler\GetFeatureForEditingHandler:
    tags:
      - name: tactician.handler
        command: PrestaShop\PrestaShop\Core\Domain\Feature\Query\GetFeatureForEditing

  PrestaShop\PrestaShop\Adapter\Feature\CommandHandler\AddFeatureValueHandler:
    arguments:
      - '@PrestaShop\PrestaShop\Adapter\Feature\Repository\FeatureRepository'
      - '@PrestaShop\PrestaShop\Adapter\Feature\Repository\FeatureValueRepository'
    tags:
      - name: tactician.handler
        command: PrestaShop\PrestaShop\Core\Domain\Feature\Command\AddFeatureValueCommand

  PrestaShop\PrestaShop\Adapter\Feature\CommandHandler\EditFeatureValueHandler:
    arguments:
      - '@PrestaShop\PrestaShop\Adapter\Feature\Repository\FeatureValueRepository'
    tags:
      - name: tactician.handler
        command: PrestaShop\PrestaShop\Core\Domain\Feature\Command\EditFeatureValueCommand

  PrestaShop\PrestaShop\Adapter\Feature\QueryHandler\GetFeatureValueForEditingHandler:
    arguments:
      - '@PrestaShop\PrestaShop\Adapter\Feature\Repository\FeatureValueRepository'
    tags:
      - name: tactician.handler
        command: PrestaShop\PrestaShop\Core\Domain\Feature\Query\GetFeatureValueForEditing

  PrestaShop\PrestaShop\Adapter\Feature\Repository\FeatureRepository:
    arguments:
      - '@doctrine.dbal.default_connection'
      - '%database_prefix%'

  PrestaShop\PrestaShop\Adapter\Feature\Validate\FeatureValueValidator: ~

  PrestaShop\PrestaShop\Adapter\Feature\Repository\FeatureValueRepository:
    public: true
    arguments:
      - '@doctrine.dbal.default_connection'
      - '%database_prefix%'
      - '@PrestaShop\PrestaShop\Adapter\Feature\Validate\FeatureValueValidator'
