( private $userId, private ReportService $reports, private DatasetService $datasets, private PanoramaService $panoramas, private ThresholdService $thresholds, private StorageMapper $storag
| 14 | /** Dispatches old report files and portable bundles through the normal import endpoint. */ |
| 15 | class BundleImportService { |
| 16 | public function __construct( |
| 17 | private $userId, |
| 18 | private ReportService $reports, |
| 19 | private DatasetService $datasets, |
| 20 | private PanoramaService $panoramas, |
| 21 | private ThresholdService $thresholds, |
| 22 | private StorageMapper $storage, |
| 23 | private IRootFolder $rootFolder, |
| 24 | private IDBConnection $db, |
| 25 | private IConfig $config, |
| 26 | private ILockingProvider $locking, |
| 27 | ) {} |
| 28 | |
| 29 | public function import(?string $path = null, ?string $raw = null): int|array { |
| 30 | if ($path !== null && $path !== '') $raw = $this->rootFolder->getUserFolder($this->userId)->get($path)->getContent(); |
nothing calls this directly
no outgoing calls
no test coverage detected