services:
    # DataSources
    Claroline\OpenBadgeBundle\Listener\DataSource\BadgesSource:
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'
            - '@Claroline\AppBundle\API\FinderProvider'
        tags:
            - { name: kernel.event_listener, event: data_source.badges.load, method: getData }

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