diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 10:35:10 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 10:35:10 +0100 |
commit | 7a569a0915d6a29bd0b4ac476477fb71f7b3a236 (patch) | |
tree | 435c69c9cdfb6c1e8d3218357cc52adee5b17b46 /apps/files_external/appinfo/register_command.php | |
parent | 37e8a87d46473614fca82cd0a6d85ac75d8a4640 (diff) | |
parent | 50857e6d7b8dd3a35cc0d9da33be84fc1b889199 (diff) | |
download | nextcloud-server-7a569a0915d6a29bd0b4ac476477fb71f7b3a236.tar.gz nextcloud-server-7a569a0915d6a29bd0b4ac476477fb71f7b3a236.zip |
Merge pull request #21392 from owncloud/files_external-import
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.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)); |