parameters:
    oro_money_order.method.identifier_prefix.money_order: 'money_order'

services:
    oro_money_order.generator.money_order_config_identifier:
        parent: oro_integration.generator.prefixed_identifier_generator
        public: true
        arguments:
            - '%oro_money_order.method.identifier_prefix.money_order%'

    oro_money_order.repository.money_settings:
        alias: Oro\Bundle\MoneyOrderBundle\Entity\Repository\MoneyOrderSettingsRepository

    Oro\Bundle\MoneyOrderBundle\Entity\Repository\MoneyOrderSettingsRepository:
        parent: oro_entity.abstract_repository
        arguments:
            - 'Oro\Bundle\MoneyOrderBundle\Entity\MoneyOrderSettings'
        calls:
            - [setAclHelper, ['@oro_security.acl_helper']]
        tags:
            - { name: doctrine.repository_service }

    oro_money_order.event_listener.money_order_options:
        class: 'Oro\Bundle\MoneyOrderBundle\EventListener\MoneyOrderOptionsListener'
        arguments:
            - '@translator'
        tags:
            - { name: kernel.event_listener, event: oro_payment.collect_formatted_payment_options, method: onCollectPaymentOptions }
