summaryrefslogtreecommitdiffstats
path: root/lib/Controller/RecordingController.php
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-01-05 13:49:38 -0300
committerVitor Mattos <vitor@php.rio>2023-01-05 13:53:14 -0300
commit6d98e5407778c1827c26921383db031137b265b0 (patch)
tree9c1c78f8469465f16dd71144ab22ac48c80196ef /lib/Controller/RecordingController.php
parent316cb944eb26aa2b6a93aec41126de99274e056e (diff)
Use PHP8 constructor promotion
Close #8522 Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/Controller/RecordingController.php')
-rw-r--r--lib/Controller/RecordingController.php20
1 files changed, 7 insertions, 13 deletions
diff --git a/lib/Controller/RecordingController.php b/lib/Controller/RecordingController.php
index b91370639..0948fe538 100644
--- a/lib/Controller/RecordingController.php
+++ b/lib/Controller/RecordingController.php
@@ -35,20 +35,14 @@ use OCP\AppFramework\Http\DataResponse;
use OCP\IRequest;
class RecordingController extends AEnvironmentAwareController {
- private Config $talkConfig;
- private SIPBridgeService $SIPBridgeService;
- private RecordingService $recordingService;
-
-
- public function __construct(string $appName,
- IRequest $request,
- Config $talkConfig,
- SIPBridgeService $SIPBridgeService,
- RecordingService $recordingService) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private Config $talkConfig,
+ private SIPBridgeService $SIPBridgeService,
+ private RecordingService $recordingService
+ ) {
parent::__construct($appName, $request);
- $this->talkConfig = $talkConfig;
- $this->SIPBridgeService = $SIPBridgeService;
- $this->recordingService = $recordingService;
}
/**