summaryrefslogtreecommitdiffstats
path: root/apps/files_external/appinfo/register_command.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-29 13:26:33 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-11 11:55:00 +0100
commit50857e6d7b8dd3a35cc0d9da33be84fc1b889199 (patch)
tree8e6825627693e17a99ad59e376946107d3b16be1 /apps/files_external/appinfo/register_command.php
parentdf2abda814e8909136a27fdac136dc15e62fe429 (diff)
downloadnextcloud-server-50857e6d7b8dd3a35cc0d9da33be84fc1b889199.tar.gz
nextcloud-server-50857e6d7b8dd3a35cc0d9da33be84fc1b889199.zip
Add import command for files external
Diffstat (limited to 'apps/files_external/appinfo/register_command.php')
-rw-r--r--apps/files_external/appinfo/register_command.php4
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 183d965d1a1..fb8502aff94 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));