ImportLegacyStoragesService.php 598 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  4. * SPDX-License-Identifier: AGPL-3.0-only
  5. */
  6. namespace OCA\Files_External\Service;
  7. class ImportLegacyStoragesService extends LegacyStoragesService {
  8. private $data;
  9. /**
  10. * @param BackendService $backendService
  11. */
  12. public function __construct(BackendService $backendService) {
  13. $this->backendService = $backendService;
  14. }
  15. public function setData($data) {
  16. $this->data = $data;
  17. }
  18. /**
  19. * Read legacy config data
  20. *
  21. * @return array list of mount configs
  22. */
  23. protected function readLegacyConfig() {
  24. return $this->data;
  25. }
  26. }