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

    Claroline\AnnouncementBundle\Listener\DataSource\AnnouncementSource:
        arguments:
            - '@Claroline\AppBundle\API\FinderProvider'
            - '@security.token_storage'
        tags:
            - { name: kernel.event_listener, event: data_source.announcements.load, method: getData }

    Claroline\AnnouncementBundle\Listener\Resource\AnnouncementListener:
        arguments:
            - '@security.authorization_checker'
            - '@Claroline\AppBundle\Persistence\ObjectManager'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@Claroline\AppBundle\API\Crud'
        tags:
            - { name: kernel.event_listener, event: resource.claroline_announcement_aggregate.load, method: load }
            - { name: kernel.event_listener, event: resource.claroline_announcement_aggregate.copy, method: copy }
            - { name: kernel.event_listener, event: resource.claroline_announcement_aggregate.export, method: onExport }
            - { name: kernel.event_listener, event: resource.claroline_announcement_aggregate.import, method: onImport }
