services:
    _defaults:
        tags: [claroline.transfer.importer]

    # Directories
    Claroline\CoreBundle\Transfer\Importer\Directory\Create:
        arguments:
            - '@Claroline\AppBundle\API\Crud'
            - '@Claroline\AppBundle\Persistence\ObjectManager'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@translator'

    Claroline\CoreBundle\Transfer\Importer\Directory\CreateOrUpdate:
        arguments:
            - '@Claroline\AppBundle\API\Crud'
            - '@Claroline\AppBundle\Persistence\ObjectManager'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@translator'

    # Workspaces
    Claroline\CoreBundle\Transfer\Importer\Workspace\Create:
        arguments:
            - '@Claroline\AppBundle\Persistence\ObjectManager'
            - '@Claroline\AppBundle\API\Crud'

    Claroline\CoreBundle\Transfer\Importer\Workspace\Delete:
        parent: Claroline\TransferBundle\Transfer\Importer\AbstractDeleteImporter

    Claroline\CoreBundle\Transfer\Importer\Workspace\Archive:
        arguments:
            - '@Claroline\AppBundle\Persistence\ObjectManager'
            - '@Claroline\CoreBundle\Manager\Workspace\WorkspaceManager'

    Claroline\CoreBundle\Transfer\Importer\Workspace\Unarchive:
        arguments:
            - '@Claroline\AppBundle\Persistence\ObjectManager'
            - '@Claroline\CoreBundle\Manager\Workspace\WorkspaceManager'

    Claroline\CoreBundle\Transfer\Importer\Workspace\AddUser:
        arguments:
            - '@Claroline\AppBundle\API\Crud'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@Claroline\AppBundle\Persistence\ObjectManager'

    Claroline\CoreBundle\Transfer\Importer\Workspace\RemoveUser:
        arguments:
            - '@Claroline\AppBundle\API\Crud'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@Claroline\AppBundle\Persistence\ObjectManager'

    Claroline\CoreBundle\Transfer\Importer\Workspace\RemoveAllUsers:
      arguments:
        - '@Claroline\AppBundle\API\Crud'
        - '@Claroline\AppBundle\Persistence\ObjectManager'

    Claroline\CoreBundle\Transfer\Importer\Workspace\AddGroup:
        arguments:
            - '@Claroline\AppBundle\API\Crud'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@Claroline\AppBundle\Persistence\ObjectManager'

    Claroline\CoreBundle\Transfer\Importer\Workspace\RemoveGroup:
        arguments:
            - '@Claroline\AppBundle\API\Crud'
            - '@Claroline\AppBundle\API\SerializerProvider'
            - '@Claroline\AppBundle\Persistence\ObjectManager'

    Claroline\CoreBundle\Transfer\Importer\Workspace\RemoveAllGroups:
      arguments:
        - '@Claroline\AppBundle\API\Crud'
        - '@Claroline\AppBundle\Persistence\ObjectManager'

    Claroline\CoreBundle\Transfer\Importer\Workspace\EmptyRole:
        arguments:
            - '@Claroline\AppBundle\API\Crud'
            - '@Claroline\AppBundle\Persistence\ObjectManager'
