. * */ namespace Friendica\Core\Config\Type; use Friendica\Core\Config\Repository\Config; use Friendica\Core\Config\ValueObject\Cache; use Friendica\Core\Config\Capability\IManageConfigValues; /** * This class is responsible for all system-wide configuration values in Friendica * There are two types of storage * - The Config-Files (loaded into the FileCache @see Cache) * - The Config-Repository (per Config-Repository @see Config ) */ abstract class AbstractConfig implements IManageConfigValues { /** * @var Cache */ protected $configCache; /** * @var Config */ protected $configRepo; /** * @param Cache $configCache The configuration cache (based on the config-files) * @param Config $configRepo The configuration repository */ public function __construct(Cache $configCache, Config $configRepo) { $this->configCache = $configCache; $this->configRepo = $configRepo; } /** * {@inheritDoc} */ public function getCache(): Cache { return $this->configCache; } }