aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/PreviewController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller/PreviewController.php')
-rw-r--r--core/Controller/PreviewController.php19
1 files changed, 6 insertions, 13 deletions
diff --git a/core/Controller/PreviewController.php b/core/Controller/PreviewController.php
index 118f1b47752..38373e2d147 100644
--- a/core/Controller/PreviewController.php
+++ b/core/Controller/PreviewController.php
@@ -40,21 +40,14 @@ use OCP\IPreview;
use OCP\IRequest;
class PreviewController extends Controller {
- private ?string $userId;
- private IRootFolder $root;
- private IPreview $preview;
-
- public function __construct(string $appName,
- IRequest $request,
- IPreview $preview,
- IRootFolder $root,
- ?string $userId
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private IPreview $preview,
+ private IRootFolder $root,
+ private ?string $userId,
) {
parent::__construct($appName, $request);
-
- $this->preview = $preview;
- $this->root = $root;
- $this->userId = $userId;
}
/**