aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/ReferenceApiController.php
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-04 23:46:27 +0330
committerLouis <6653109+artonge@users.noreply.github.com>2023-06-16 19:29:40 +0200
commit4bf610ebaf52447a678e83d40a98463969e6fd51 (patch)
tree93f2cab7e491ac9f2071e69aa8754b4ab9243ca1 /core/Controller/ReferenceApiController.php
parentd820ab2ca8342d756ec8e0554e180e7f00cc3860 (diff)
downloadnextcloud-server-4bf610ebaf52447a678e83d40a98463969e6fd51.tar.gz
nextcloud-server-4bf610ebaf52447a678e83d40a98463969e6fd51.zip
Refactors controllers by using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'core/Controller/ReferenceApiController.php')
-rw-r--r--core/Controller/ReferenceApiController.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/core/Controller/ReferenceApiController.php b/core/Controller/ReferenceApiController.php
index 6aba56d7e77..25d78e153e8 100644
--- a/core/Controller/ReferenceApiController.php
+++ b/core/Controller/ReferenceApiController.php
@@ -30,16 +30,11 @@ use OCP\Collaboration\Reference\IReferenceManager;
use OCP\IRequest;
class ReferenceApiController extends \OCP\AppFramework\OCSController {
- private IReferenceManager $referenceManager;
- private ?string $userId;
-
public function __construct(string $appName,
IRequest $request,
- IReferenceManager $referenceManager,
- ?string $userId) {
+ private IReferenceManager $referenceManager,
+ private ?string $userId) {
parent::__construct($appName, $request);
- $this->referenceManager = $referenceManager;
- $this->userId = $userId;
}
/**