MCPcopy Create free account
hub / github.com/Rello/analytics / import

Method import

lib/Controller/ReportController.php:267–275  ·  view source on GitHub ↗

* Import report * * @param string|null $path * @param string|null $raw * @return DataResponse * @throws \OCP\Files\NotFoundException * @throws \OCP\Files\NotPermittedException */

(?string $path = null, ?string $raw = null)

Source from the content-addressed store, hash-verified

265 * @throws \OCP\Files\NotPermittedException
266 */
267 #[NoAdminRequired]
268 public function import(?string $path = null, ?string $raw = null)
269 {
270 try {
271 return new DataResponse($this->bundleImportService->import($path, $raw));
272 } catch (\InvalidArgumentException $e) {
273 return new DataResponse(['error' => $e->getMessage()], 400);
274 }
275 }
276}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected