Browse Source

Rename method because the name "store" isn't cleary on RoomService

Signed-off-by: Vitor Mattos <vitor@php.rio>
pull/8492/head
Vitor Mattos 3 years ago
parent
commit
c541d497dd
No known key found for this signature in database GPG Key ID: B7AB4B76A7CA7318
  1. 2
      lib/Controller/RecordingController.php
  2. 2
      lib/Service/RoomService.php

2
lib/Controller/RecordingController.php

@ -100,7 +100,7 @@ class RecordingController extends AEnvironmentAwareController {
try { try {
$file = $this->request->getUploadedFile('file'); $file = $this->request->getUploadedFile('file');
$this->roomService->store($this->getRoom(), $owner, $file);
$this->roomService->storeRecording($this->getRoom(), $owner, $file);
} catch (InvalidArgumentException $e) { } catch (InvalidArgumentException $e) {
return new DataResponse(['error' => $e->getMessage()], Http::STATUS_BAD_REQUEST); return new DataResponse(['error' => $e->getMessage()], Http::STATUS_BAD_REQUEST);
} }

2
lib/Service/RoomService.php

@ -416,7 +416,7 @@ class RoomService {
$this->dispatcher->dispatch(Room::EVENT_AFTER_SET_CALL_RECORDING, $event); $this->dispatcher->dispatch(Room::EVENT_AFTER_SET_CALL_RECORDING, $event);
} }
public function store(Room $room, string $owner, array $file): void {
public function storeRecording(Room $room, string $owner, array $file): void {
} }
/** /**

Loading…
Cancel
Save