services:
    _defaults:
        public: true # because controller

    UJM\ExoBundle\Controller\ItemController:
        parent: Claroline\AppBundle\Controller\AbstractCrudController
        public: true
        arguments:
            - '@security.authorization_checker'
            - '@UJM\ExoBundle\Manager\Item\ItemManager'
            - '@UJM\ExoBundle\Manager\Item\ShareManager'

    UJM\ExoBundle\Controller\AttemptController:
        arguments:
            - '@security.authorization_checker'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@UJM\ExoBundle\Manager\AttemptManager'
            - '@UJM\ExoBundle\Manager\Attempt\PaperManager'
            - '@Claroline\EvaluationBundle\Manager\ResourceEvaluationManager'

    UJM\ExoBundle\Controller\CorrectionController:
        arguments:
            - '@security.authorization_checker'
            - '@UJM\ExoBundle\Manager\CorrectionManager'

    UJM\ExoBundle\Controller\ExerciseController:
        arguments:
            - '@security.authorization_checker'
            - '@UJM\ExoBundle\Manager\ExerciseManager'

    UJM\ExoBundle\Controller\AnalyticsController:
        arguments:
            - '@security.token_storage'
            - '@security.authorization_checker'
            - '@UJM\ExoBundle\Manager\DocimologyManager'
            - '@UJM\ExoBundle\Manager\Item\ItemManager'

    UJM\ExoBundle\Controller\PaperController:
        arguments:
            - '@security.authorization_checker'
            - '@Claroline\AppBundle\Persistence\ObjectManager'
            - '@Claroline\AppBundle\API\FinderProvider'
            - '@UJM\ExoBundle\Manager\Attempt\PaperManager'
            - '@UJM\ExoBundle\Manager\ExerciseManager'
