services:
    _defaults:
        public: true #because controller

    # Trainings
    Claroline\CursusBundle\Controller\CourseController:
        parent: Claroline\AppBundle\Controller\AbstractCrudController
        public: true
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'
            - '@Claroline\CoreBundle\Library\RoutingHelper'
            - '@Claroline\CoreBundle\Manager\Tool\ToolManager'
            - '@Claroline\CursusBundle\Manager\CourseManager'
            - '@Claroline\AppBundle\Manager\PdfManager'

    Claroline\CursusBundle\Controller\SessionController:
        parent: Claroline\AppBundle\Controller\AbstractCrudController
        public: true
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'
            - '@translator'
            - '@Claroline\CoreBundle\Library\RoutingHelper'
            - '@Claroline\CoreBundle\Manager\Tool\ToolManager'
            - '@Claroline\CursusBundle\Manager\SessionManager'
            - '@Claroline\AppBundle\Manager\PdfManager'

    Claroline\CursusBundle\Controller\EventController:
        parent: Claroline\AppBundle\Controller\AbstractCrudController
        public: true
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'
            - '@translator'
            - '@Claroline\CursusBundle\Manager\EventManager'
            - '@Claroline\AppBundle\Manager\PdfManager'

    Claroline\CursusBundle\Controller\EventPresenceController:
        arguments:
            - '@security.authorization_checker'
            - '@Claroline\AppBundle\Persistence\ObjectManager'
            - '@Claroline\AppBundle\API\FinderProvider'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@Claroline\CursusBundle\Manager\EventPresenceManager'
            - '@Claroline\CursusBundle\Manager\EventManager'
            - '@Claroline\AppBundle\Manager\PdfManager'

    # Registrations
    Claroline\CursusBundle\Controller\Registration\CourseUserController:
        parent: Claroline\AppBundle\Controller\AbstractCrudController
        public: true
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'

    Claroline\CursusBundle\Controller\Registration\SessionUserController:
        parent: Claroline\AppBundle\Controller\AbstractCrudController
        public: true
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'
            - '@Claroline\CursusBundle\Manager\SessionManager'

    Claroline\CursusBundle\Controller\Registration\SessionGroupController:
        parent: Claroline\AppBundle\Controller\AbstractCrudController
        public: true
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'
            - '@Claroline\CursusBundle\Manager\SessionManager'

    # User trainings
    Claroline\CursusBundle\Controller\User\SessionController:
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'
            - '@Claroline\AppBundle\API\FinderProvider'

    Claroline\CursusBundle\Controller\User\EventController:
        arguments:
            - '@security.authorization_checker'
            - '@security.token_storage'
            - '@Claroline\AppBundle\API\FinderProvider'
