From 50857e6d7b8dd3a35cc0d9da33be84fc1b889199 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 29 Dec 2015 13:26:33 +0100 Subject: Add import command for files external --- apps/files_external/appinfo/register_command.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/files_external/appinfo') 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)); -- cgit v1.2.3