services:
  _defaults:
    public: true

  prestashop.core.backup.options_configuration:
    class: 'PrestaShop\PrestaShop\Core\Backup\Configuration\BackupOptionsConfiguration'
    arguments:
      - '@prestashop.adapter.legacy.configuration'

  prestashop.core.backup.listing.grid_data_factory:
    class: 'PrestaShop\PrestaShop\Core\Backup\Listing\BackupGridDataFactory'
    arguments:
      - '@PrestaShop\PrestaShop\Core\Backup\Repository\BackupRepositoryInterface'
      - '@prestashop.core.backup.comparator.backup_by_date_comparator'
      - '@translator'
      - '@=service("prestashop.adapter.legacy.context").getLanguage().date_format_full'

  prestashop.core.backup.comparator.backup_by_date_comparator:
    class: 'PrestaShop\PrestaShop\Core\Backup\Comparator\BackupByDateComparator'
