parameters:
    oro_address.address.entity.class:       Oro\Bundle\AddressBundle\Entity\Address
    oro_address.address.type.entity.class:  Oro\Bundle\AddressBundle\Entity\AddressType
    oro_address.address.manager.class:      Oro\Bundle\AddressBundle\Entity\Manager\AddressManager
    oro_address.provider.address.class:     Oro\Bundle\AddressBundle\Provider\AddressProvider
    oro_address.provider.phone.class:       Oro\Bundle\AddressBundle\Provider\PhoneProvider
    oro_address.validator.valid_region.class: Oro\Bundle\AddressBundle\Validator\Constraints\ValidRegionValidator
    oro_address.extension.action.type.map.class: Oro\Bundle\AddressBundle\Extension\Action\Actions\MapAction

services:
    oro_address.address.manager:
        class: %oro_address.address.manager.class%
        arguments:
            - %oro_address.address.entity.class%
            - '@doctrine.orm.entity_manager'
        public: false
        tags:
            - { name: oro_address.storage }

    oro_address.address.provider:
        class: %oro_address.provider.address.class%

    oro_address.provider.phone:
        class: %oro_address.provider.phone.class%
        arguments:
            - '@oro_entity_config.provider.extend'

    oro_address.validator.valid_region:
        class: %oro_address.validator.valid_region.class%
        tags:
            - { name: validator.constraint_validator, alias: oro_address_valid_region }

    oro_address.extension.action.type.map:
        class: '%oro_address.extension.action.type.map.class%'
        scope: prototype
        tags:
            - { name: oro_datagrid.extension.action.type, type: map }
