services:
    akeneo_connectivity.connection.persistence.repository.connection:
        class: 'Akeneo\Connectivity\Connection\Infrastructure\Persistence\Dbal\Repository\DbalConnectionRepository'
        arguments:
            - '@database_connection'

    akeneo_connectivity.connection.persistence.repository.event_count:
        class: Akeneo\Connectivity\Connection\Infrastructure\Persistence\Dbal\Repository\DbalEventCountRepository
        arguments:
            - '@database_connection'

    akeneo_connectivity.connection.persistence.repository.error_count:
        class: Akeneo\Connectivity\Connection\Infrastructure\Persistence\Dbal\Repository\DbalErrorCountRepository
        arguments:
            - '@database_connection'

    akeneo_connectivity.connection.persistence.repository.business_error:
        class: Akeneo\Connectivity\Connection\Infrastructure\Persistence\Elasticsearch\Repository\ElasticsearchBusinessErrorRepository
        arguments:
            - '@akeneo_connectivity.client.connection_error'

    akeneo_connectivity.connection.persistence.repository.webhook:
        class: Akeneo\Connectivity\Connection\Infrastructure\Persistence\Dbal\Repository\DbalConnectionWebhookRepository
        arguments:
            - '@database_connection'

    akeneo_connectivity.connection.persistence.repository.events_api_request_count:
        class: Akeneo\Connectivity\Connection\Infrastructure\Persistence\Dbal\Repository\DbalEventsApiRequestCountRepository
        arguments:
            - '@database_connection'

    akeneo_connectivity.connection.persistence.repository.events_api_debug:
        class: Akeneo\Connectivity\Connection\Infrastructure\Persistence\Elasticsearch\Repository\ElasticsearchEventsApiDebugRepository
        arguments:
            - '@akeneo_connectivity.client.events_api_debug'
