3 namespace Friendica\Core;
5 use Friendica\Core\PConfig\Cache;
6 use Friendica\Core\PConfig\IPConfig;
10 * This class is responsible for the user-specific configuration values in Friendica
11 * The values are set through the Config-DB-Table (per Config-DB-model @see Model\Config\PConfig)
13 * The configuration cache (@see Cache\PConfigCache) is used for temporary caching of database calls. This will
14 * increase the performance.
16 abstract class BasePConfig implements IPConfig
21 protected $configCache;
24 * @var Model\Config\PConfig
26 protected $configModel;
29 * @param Cache $configCache The configuration cache
30 * @param Model\Config\PConfig $configModel The configuration model
32 public function __construct(Cache $configCache, Model\Config\PConfig $configModel)
34 $this->configCache = $configCache;
35 $this->configModel = $configModel;
39 * Returns the Config Cache
43 public function getCache()
45 return $this->configCache;