@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
at upstream/main 22 lines 634 B view raw
1<?php 2 3/** 4 * Configuration source which reads from defaults defined in the authoritative 5 * configuration definitions. 6 */ 7final class PhabricatorConfigDefaultSource 8 extends PhabricatorConfigProxySource { 9 10 public function __construct() { 11 $options = PhabricatorApplicationConfigOptions::loadAllOptions(); 12 $options = mpull($options, 'getDefault'); 13 $this->setSource(new PhabricatorConfigDictionarySource($options)); 14 } 15 16 public function loadExternalOptions() { 17 $options = PhabricatorApplicationConfigOptions::loadAllOptions(true); 18 $options = mpull($options, 'getDefault'); 19 $this->setKeys($options); 20 } 21 22}