summaryrefslogtreecommitdiffstats
path: root/core/Controller/HoverCardController.php
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-04 23:20:35 +0330
committerFaraz Samapoor <f.samapoor@gmail.com>2023-06-04 23:20:35 +0330
commit450bf5c99e633ab164ecb420d6f5b8660b150238 (patch)
treefef869df8664164c6123c9f3b1e85543ef8d6faf /core/Controller/HoverCardController.php
parentcf75c2eaae82b58f5d1bd2cc765b31d5106eeafb (diff)
downloadnextcloud-server-450bf5c99e633ab164ecb420d6f5b8660b150238.tar.gz
nextcloud-server-450bf5c99e633ab164ecb420d6f5b8660b150238.zip
Refactors controllers by using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'core/Controller/HoverCardController.php')
-rw-r--r--core/Controller/HoverCardController.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/Controller/HoverCardController.php b/core/Controller/HoverCardController.php
index 632cdd0d02f..154dc01ad97 100644
--- a/core/Controller/HoverCardController.php
+++ b/core/Controller/HoverCardController.php
@@ -33,13 +33,10 @@ use OCP\IUserSession;
use OCP\Share\IShare;
class HoverCardController extends \OCP\AppFramework\OCSController {
- private Manager $manager;
- private IUserSession $userSession;
-
- public function __construct(IRequest $request, IUserSession $userSession, Manager $manager) {
+ public function __construct(IRequest $request,
+ private IUserSession $userSession,
+ private Manager $manager) {
parent::__construct('core', $request);
- $this->userSession = $userSession;
- $this->manager = $manager;
}
/**