parameters:
    pim_connector.event_listener.archivist.class:                 Akeneo\Tool\Bundle\ConnectorBundle\EventListener\JobExecutionArchivist
    pim_connector.event_listener.invalid_items_collector.class:   Akeneo\Tool\Bundle\ConnectorBundle\EventListener\InvalidItemsCollector
    pim_connector.archiver.file_reader_archiver.class:            Akeneo\Tool\Component\Connector\Archiver\FileReaderArchiver
    pim_connector.archiver.file_writer_archiver.class:            Akeneo\Tool\Component\Connector\Archiver\FileWriterArchiver

services:
    pim_connector.event_listener.archivist:
        class: '%pim_connector.event_listener.archivist.class%'
        tags:
            - { name: kernel.event_subscriber }

    pim_connector.event_listener.invalid_items_collector:
        class: '%pim_connector.event_listener.invalid_items_collector.class%'
        tags:
            - { name: kernel.event_subscriber }

    pim_connector.archiver.file_reader_archiver:
        class: '%pim_connector.archiver.file_reader_archiver.class%'
        arguments:
            - '@oneup_flysystem.archivist_filesystem'
            - '@akeneo_batch.job.job_registry'
        tags:
            - { name: pim_connector.archiver }

    pim_connector.archiver.file_writer_archiver:
        class: '%pim_connector.archiver.file_writer_archiver.class%'
        arguments:
            - '@oneup_flysystem.archivist_filesystem'
            - '@akeneo_batch.job.job_registry'
            - '@akeneo_file_storage.file_storage.filesystem_provider'
            - '@logger'
        tags:
            - { name: pim_connector.archiver }

    pim_connector.log_archiver:
        class: 'Akeneo\Tool\Component\Connector\LogArchiver'
        arguments:
            - '@oneup_flysystem.archivist_filesystem'
        tags:
            - { name: kernel.event_subscriber }
