parameters:
    orocrm_case.entity.class:              OroCRM\Bundle\CaseBundle\Entity\CaseEntity
    orocrm_case.comment.class:             OroCRM\Bundle\CaseBundle\Entity\CaseComment
    orocrm_case.manager.class:             OroCRM\Bundle\CaseBundle\Model\CaseEntityManager
    orocrm_case.manager.api.class:         OroCRM\Bundle\CaseBundle\Model\CaseApiEntityManager
    orocrm_case.manager.comment.api.class: OroCRM\Bundle\CaseBundle\Model\CommentApiEntityManager
    orocrm_case.view_factory.class:        OroCRM\Bundle\CaseBundle\Model\ViewFactory
    orocrm_case.provider.phone.case.class: OroCRM\Bundle\CaseBundle\Provider\CasePhoneProvider

services:
    orocrm_case.manager:
        class: %orocrm_case.manager.class%
        arguments:
            - @doctrine
            - @oro_security.acl_helper

    orocrm_case.manager.api:
        class: %orocrm_case.manager.api.class%
        parent: oro_soap.manager.entity_manager.abstract
        arguments:
            - %orocrm_case.entity.class%
            - @doctrine.orm.entity_manager
            - @orocrm_case.manager

    orocrm_case.manager.comment.api:
        class: %orocrm_case.manager.comment.api.class%
        parent: oro_soap.manager.entity_manager.abstract
        arguments:
            - %orocrm_case.comment.class%
            - @doctrine.orm.entity_manager
            - @orocrm_case.manager

    orocrm_case.view_factory:
        class: %orocrm_case.view_factory.class%
        arguments:
            - @oro_security.security_facade
            - @router
            - @oro_locale.formatter.name
            - @oro_locale.formatter.date_time
            - @oro_attachment.manager

    orocrm_case.provider.phone.case:
        class: %orocrm_case.provider.phone.case.class%
        tags:
            - { name: oro_address.phone_provider, class: %orocrm_case.entity.class% }
