diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-25 17:30:42 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-25 17:30:42 +0100 |
commit | 03464f1429bcd6cd59310eb01a20ee4373859134 (patch) | |
tree | 24fa74997ecd0fdffc22a90871a32706e42e5b0f | |
parent | fafac38f74ad594323dd707a844620cacfdb2c66 (diff) | |
download | nextcloud-server-pr/51113.tar.gz nextcloud-server-pr/51113.zip |
chore: Use constructor property promotion in OCMProviderpr/51113
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | lib/private/OCM/Model/OCMProvider.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/OCM/Model/OCMProvider.php b/lib/private/OCM/Model/OCMProvider.php index 8b566a6b313..2d916b3fdba 100644 --- a/lib/private/OCM/Model/OCMProvider.php +++ b/lib/private/OCM/Model/OCMProvider.php @@ -22,7 +22,6 @@ use OCP\OCM\IOCMResource; * @since 28.0.0 */ class OCMProvider implements IOCMProvider { - private IConfig $config; private string $provider; private bool $enabled = false; private string $apiVersion = ''; @@ -35,9 +34,8 @@ class OCMProvider implements IOCMProvider { public function __construct( protected IEventDispatcher $dispatcher, - IConfig $config, + protected IConfig $config, ) { - $this->config = $config; $this->provider = 'Nextcloud ' . $config->getSystemValue('version'); } |