services:
    _defaults:
        autowire: false
        autoconfigure: false

    Claroline\InstallationBundle\Command\RefreshCommand:
        arguments:
            - '@Claroline\InstallationBundle\Manager\RefreshManager'
        tags:
            - { name: 'console.command', command: 'claroline:refresh' }

    Claroline\InstallationBundle\Command\PlatformInstallCommand:
        arguments:
            - '%claroline.param.files_directory%'
        tags:
            - { name: 'console.command', command: 'claroline:install' }

    Claroline\InstallationBundle\Command\PlatformUpdateCommand:
        arguments:
            - '@Claroline\InstallationBundle\Manager\RefreshManager'
            - '@Claroline\CoreBundle\Library\Installation\PlatformInstaller'
            - '@Claroline\CoreBundle\Manager\VersionManager'
            - '@Claroline\CoreBundle\Library\Configuration\PlatformConfigurationHandler'
            - '%kernel.environment%'
        tags:
            - { name: 'console.command', command: 'claroline:update' }

    Claroline\InstallationBundle\Command\ExecuteUpdaterCommand:
        arguments:
            - '@Claroline\InstallationBundle\Repository\UpdaterExecutionRepository'
            - !tagged_locator
                  tag: 'claroline.platform.updater'
        tags:
            - { name: 'console.command', command: 'claroline:updater:execute' }

    Claroline\InstallationBundle\Command\PluginInstallCommand:
        arguments:
            - '@Claroline\CoreBundle\Library\Installation\Plugin\Installer'
        tags:
            - { name: 'console.command', command: 'claroline:plugin:install' }

    Claroline\InstallationBundle\Command\PluginUninstallCommand:
        arguments:
            - '@Claroline\CoreBundle\Library\Installation\Plugin\Installer'
        tags:
            - { name: 'console.command', command: 'claroline:plugin:uninstall' }
