diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-04 23:30:58 +0330 |
---|---|---|
committer | Louis <6653109+artonge@users.noreply.github.com> | 2023-06-20 10:38:46 +0200 |
commit | 9eedeb401211c7210228b2c87674066d862d0329 (patch) | |
tree | 5f8dc4bc12db3af2c3b2cc27246d9a26e2ea7065 /core/Controller/SetupController.php | |
parent | 5063bf37ed3e68041adb9a96f430a87d59106491 (diff) | |
download | nextcloud-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.php | 7 |
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 { |