diff options
Diffstat (limited to 'apps/files_external/appinfo/register_command.php')
-rw-r--r-- | apps/files_external/appinfo/register_command.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/appinfo/register_command.php b/apps/files_external/appinfo/register_command.php index 79503d9fa2d..12bf6a45df3 100644 --- a/apps/files_external/appinfo/register_command.php +++ b/apps/files_external/appinfo/register_command.php @@ -23,6 +23,7 @@ use OCA\Files_External\Command\ListCommand; use OCA\Files_External\Command\Config; use OCA\Files_External\Command\Option; +use \OCA\Files_External\Command\Import; $userManager = OC::$server->getUserManager(); $userSession = OC::$server->getUserSession(); @@ -31,8 +32,11 @@ $app = \OC_Mount_Config::$app; $globalStorageService = $app->getContainer()->query('\OCA\Files_external\Service\GlobalStoragesService'); $userStorageService = $app->getContainer()->query('\OCA\Files_external\Service\UserStoragesService'); +$importLegacyStorageService = $app->getContainer()->query('\OCA\Files_external\Service\ImportLegacyStoragesService'); +$backendService = $app->getContainer()->query('OCA\Files_External\Service\BackendService'); /** @var Symfony\Component\Console\Application $application */ $application->add(new ListCommand($globalStorageService, $userStorageService, $userSession, $userManager)); $application->add(new Config($globalStorageService)); $application->add(new Option($globalStorageService)); +$application->add(new Import($globalStorageService, $userStorageService, $userSession, $userManager, $importLegacyStorageService, $backendService)); |