services:
    oro_contact.form.type.contact_phone:
        class: Symfony\Component\Form\Form
        factory: ['@form.factory', createNamed]
        arguments: ["oro_contact_phone", Oro\Bundle\ContactBundle\Form\Type\ContactPhoneType, null]

    oro_contact.form.type.contact_phone.type:
        class: Oro\Bundle\ContactBundle\Form\Type\ContactPhoneType
        public: true
        tags:
            - { name: form.type, alias: oro_contact_phone }

    oro_contact.form.type.contact_phone.handler:
        class: Oro\Bundle\ContactBundle\Form\Handler\ContactPhoneHandler
        public: true
        arguments:
            - "@oro_contact.form.type.contact_phone"
            - "@request_stack"
            - "@doctrine.orm.entity_manager"
            - "@security.authorization_checker"

    oro_contact.form.type.contact_email:
        class: Symfony\Component\Form\Form
        factory: ['@form.factory', createNamed]
        arguments: ["oro_contact_email", Oro\Bundle\ContactBundle\Form\Type\ContactEmailType, null]

    oro_contact.form.type.contact_email.type:
        class: Oro\Bundle\ContactBundle\Form\Type\ContactEmailType
        public: true
        tags:
            - { name: form.type, alias: oro_contact_email }

    oro_contact.form.type.contact_email.handler:
        class: Oro\Bundle\ContactBundle\Form\Handler\ContactEmailHandler
        public: true
        arguments:
            - "@oro_contact.form.type.contact_email"
            - "@request_stack"
            - "@doctrine.orm.entity_manager"
            - "@security.authorization_checker"
