services:
    _defaults:
        autowire: false #change to true
        autoconfigure: false
        public: true #because controller

    Icap\LessonBundle\Controller\ChapterController:
        arguments:
          - '@Claroline\AppBundle\Persistence\ObjectManager'
          - '@twig'
          - '@Claroline\AppBundle\API\FinderProvider'
          - '@Icap\LessonBundle\Serializer\ChapterSerializer'
          - '@Icap\LessonBundle\Manager\ChapterManager'
          - '@security.authorization_checker'
          - '@Claroline\AppBundle\Manager\PdfManager'

    Icap\LessonBundle\Controller\LessonController:
        arguments:
          - '@security.authorization_checker'
          - '@Claroline\AppBundle\Persistence\ObjectManager'
          - '@twig'
          - '@Claroline\AppBundle\API\Crud'
          - '@Claroline\AppBundle\API\SerializerProvider'
          - '@Claroline\AppBundle\Manager\PdfManager'
