3 namespace Friendica\Core;
5 use Friendica\Core\Config\Cache;
6 use Friendica\Core\Config\IConfig;
10 * This class is responsible for all system-wide configuration values in Friendica
11 * There are two types of storage
12 * - The Config-Files (loaded into the FileCache @see Cache\ConfigCache)
13 * - The Config-DB-Table (per Config-DB-model @see Model\Config\Config)
15 abstract class BaseConfig implements IConfig
18 * @var Cache\ConfigCache
20 protected $configCache;
23 * @var Model\Config\Config
25 protected $configModel;
28 * @param Cache\ConfigCache $configCache The configuration cache (based on the config-files)
29 * @param Model\Config\Config $configModel The configuration model
31 public function __construct(Cache\ConfigCache $configCache, Model\Config\Config $configModel)
33 $this->configCache = $configCache;
34 $this->configModel = $configModel;
40 public function getCache()
42 return $this->configCache;