aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/SetupController.php
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-04 23:30:58 +0330
committerLouis <6653109+artonge@users.noreply.github.com>2023-06-20 10:38:46 +0200
commit9eedeb401211c7210228b2c87674066d862d0329 (patch)
tree5f8dc4bc12db3af2c3b2cc27246d9a26e2ea7065 /core/Controller/SetupController.php
parent5063bf37ed3e68041adb9a96f430a87d59106491 (diff)
downloadnextcloud-server-9eedeb401211c7210228b2c87674066d862d0329.tar.gz
nextcloud-server-9eedeb401211c7210228b2c87674066d862d0329.zip
Refactors controllers by using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'core/Controller/SetupController.php')
-rw-r--r--core/Controller/SetupController.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/Controller/SetupController.php b/core/Controller/SetupController.php
index cdab39edf84..634ae93efb5 100644
--- a/core/Controller/SetupController.php
+++ b/core/Controller/SetupController.php
@@ -35,15 +35,10 @@ use OC\Setup;
use OCP\ILogger;
class SetupController {
- protected Setup $setupHelper;
private string $autoConfigFile;
- /**
- * @param Setup $setupHelper
- */
- public function __construct(Setup $setupHelper) {
+ public function __construct(protected Setup $setupHelper) {
$this->autoConfigFile = \OC::$configDir.'autoconfig.php';
- $this->setupHelper = $setupHelper;
}
public function run(array $post): void {