Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
683 B · 26 lines
PHP
123456789101112131415161718192021222324252627<?php
/** * Configuration source which reads from the database. */final class PhabricatorConfigDatabaseSource extends PhabricatorConfigProxySource {
public function __construct($namespace) { $config = $this->loadConfig($namespace); $this->setSource(new PhabricatorConfigDictionarySource($config)); }
public function isWritable() { // While this is writable, writes occur through the Config application. return false; }
private function loadConfig($namespace) { $objects = id(new PhabricatorConfigEntry())->loadAllWhere( 'namespace = %s AND isDeleted = 0', $namespace); return mpull($objects, 'getValue', 'getConfigKey'); }
}