2015-12-29 07:26:33 -05:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2015-12-29 07:26:33 -05:00
|
|
|
/**
|
2024-06-06 03:55:47 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-12-29 07:26:33 -05:00
|
|
|
*/
|
2016-05-13 05:22:28 -04:00
|
|
|
namespace OCA\Files_External\Service;
|
2015-12-29 07:26:33 -05:00
|
|
|
|
|
|
|
|
class ImportLegacyStoragesService extends LegacyStoragesService {
|
|
|
|
|
private $data;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param BackendService $backendService
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(BackendService $backendService) {
|
|
|
|
|
$this->backendService = $backendService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setData($data) {
|
|
|
|
|
$this->data = $data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read legacy config data
|
|
|
|
|
*
|
|
|
|
|
* @return array list of mount configs
|
|
|
|
|
*/
|
|
|
|
|
protected function readLegacyConfig() {
|
|
|
|
|
return $this->data;
|
|
|
|
|
}
|
|
|
|
|
}
|