mirror of
https://github.com/linuxserver/objectstorageapp.git
synced 2026-02-20 00:55:06 +08:00
25 lines
506 B
PHP
25 lines
506 B
PHP
<?php
|
|
namespace OCA\ObjectStorageApp\Service;
|
|
|
|
use \OCP\IConfig;
|
|
|
|
class BackblazeService {
|
|
|
|
private $config;
|
|
private $appName;
|
|
|
|
public function __construct(IConfig $config, $appName){
|
|
$this->config = $config;
|
|
$this->appName = $appName;
|
|
}
|
|
|
|
public function getAppValue($key) {
|
|
return $this->config->getAppValue($this->appName, $key);
|
|
}
|
|
|
|
public function setAppValue($key, $value) {
|
|
$this->config->setAppValue($this->appName, $key, $value);
|
|
}
|
|
|
|
}
|