mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
chore: Use constructor property promotion in OCMProvider
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
fafac38f74
commit
03464f1429
1 changed files with 1 additions and 3 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue