parameters:
    oro_calendar.calendar.entity.class:                          Oro\Bundle\CalendarBundle\Entity\Calendar
    oro_calendar.calendar_connection.entity.class:               Oro\Bundle\CalendarBundle\Entity\CalendarConnection
    oro_calendar.calendar_event.entity.class:                    Oro\Bundle\CalendarBundle\Entity\CalendarEvent
    oro_calendar.listener.entity_listener.class:                 Oro\Bundle\CalendarBundle\EventListener\EntityListener
    oro_calendar.calendar_connection.manager.api.class:          Oro\Bundle\SoapBundle\Entity\Manager\ApiEntityManager
    oro_calendar.calendar_event.manager.api.class:               Oro\Bundle\SoapBundle\Entity\Manager\ApiEntityManager
    oro_calendar.twig.dateformat.class:                          Oro\Bundle\CalendarBundle\Twig\DateFormatExtension
    oro_calendar.provider.calendar_config.class:                 Oro\Bundle\CalendarBundle\Provider\CalendarDateTimeConfigProvider
    oro_calendar.format_converter.date_time.full_calendar.class: Oro\Bundle\CalendarBundle\Converter\FullCalendarDateTimeFormatConverter
    oro_calendar.owner_assignment_checker.calendar.class:        Oro\Bundle\CalendarBundle\Ownership\CalendarOwnerAssignmentChecker

services:
    oro_calendar.listener.entity_listener:
        class: %oro_calendar.listener.entity_listener.class%
        tags:
            - { name: doctrine.event_listener, event: onFlush }

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

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

    oro_calendar.twig.dateformat:
        class: %oro_calendar.twig.dateformat.class%
        arguments:
            - @oro_locale.formatter.date_time
        tags:
            - { name: twig.extension }

    oro_calendar.provider.calendar_config:
        class: %oro_calendar.provider.calendar_config.class%
        arguments:
            - @oro_locale.settings

    oro_calendar.format_converter.date_time.full_calendar:
        class: %oro_calendar.format_converter.date_time.full_calendar.class%
        arguments:
            - @oro_locale.formatter.date_time
        tags:
            - { name: oro_locale.format_converter.date_time, alias: fullcalendar }

    oro_calendar.owner_assignment_checker.calendar:
        class: %oro_calendar.owner_assignment_checker.calendar.class%
        tags:
            - { name: oro_organization.owner_assignment_checker, entity: Oro\Bundle\CalendarBundle\Entity\Calendar }
