services:

    pim_enrich.controller.rest.locale:
        public: true
        class: 'Akeneo\Channel\Bundle\Controller\InternalApi\LocaleController'
        arguments:
            - '@pim_catalog.repository.locale'
            - '@pim_internal_api_serializer'
            - '@pim_catalog.filter.chained'

    pim_api.controller.locale:
        public: true
        class: 'Akeneo\Channel\Bundle\Controller\ExternalApi\LocaleController'
        arguments:
            - '@pim_api.repository.locale'
            - '@pim_external_api_serializer'
            - '@pim_api.pagination.offset_hal_paginator'
            - '@pim_api.pagination.parameter_validator'
            - '@pim_api.checker.query_parameters_locale'
            - '%pim_api.configuration%'

    pim_api.controller.channel:
        public: true
        class: 'Akeneo\Channel\Bundle\Controller\ExternalApi\ChannelController'
        arguments:
            - '@pim_api.repository.channel'
            - '@pim_external_api_serializer'
            - '@pim_api.pagination.offset_hal_paginator'
            - '@pim_api.pagination.parameter_validator'
            - '@pim_catalog.factory.channel'
            - '@pim_catalog.updater.channel'
            - '@validator'
            - '@router'
            - '@pim_catalog.saver.channel'
            - '@pim_api.stream.channel_partial_update_stream'
            - '%pim_api.configuration%'

    pim_enrich.controller.rest.channel:
        public: true
        class: 'Akeneo\Channel\Bundle\Controller\InternalApi\ChannelController'
        arguments:
            - '@pim_catalog.repository.channel'
            - '@pim_internal_api_serializer'
            - '@pim_catalog.updater.channel'
            - '@pim_catalog.saver.channel'
            - '@pim_catalog.remover.channel'
            - '@pim_catalog.factory.channel'
            - '@validator'

    pim_api.controller.currency:
        public: true
        class: 'Akeneo\Channel\Bundle\Controller\ExternalApi\CurrencyController'
        arguments:
            - '@pim_api.repository.currency'
            - '@pim_external_api_serializer'
            - '@pim_api.pagination.parameter_validator'
            - '@pim_api.pagination.offset_hal_paginator'
            - '%pim_api.configuration%'

    pim_enrich.controller.rest.currency:
        public: true
        class: 'Akeneo\Channel\Bundle\Controller\InternalApi\CurrencyController'
        arguments:
            - '@pim_catalog.repository.currency'

    pim_enrich.controller.currency:
        public: true
        class: 'Akeneo\Channel\Bundle\Controller\UI\CurrencyController'
        arguments:
            - '@router'
            - '@pim_catalog.saver.currency'
