services:
    _defaults:
        autowire: false
        autoconfigure: false
        public: false

    Claroline\AgendaBundle\Listener\Tool\AgendaListener:
        arguments:
            - '@security.token_storage'
            - '@translator'
        tags:
            - { name: kernel.event_listener, event: tool.open.workspace.agenda, method: onDisplayWorkspace }
            - { name: kernel.event_listener, event: tool.open.desktop.agenda, method: onDisplayDesktop }

    Claroline\AgendaBundle\Listener\DataSource\AgendaSource:
        arguments:
            - '@Claroline\AppBundle\API\FinderProvider'
            - '@security.token_storage'
        tags:
            - { name: kernel.event_listener, event: data_source.events.load, method: getEventsData }
            - { name: kernel.event_listener, event: data_source.tasks.load, method: getTasksData }
