1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 17:22:42 +01:00
phorge-phorge/src/infrastructure/env/PhabricatorConfigDefaultSource.php

23 lines
634 B
PHP
Raw Normal View History

<?php
/**
* Configuration source which reads from defaults defined in the authoritative
* configuration definitions.
*/
final class PhabricatorConfigDefaultSource
extends PhabricatorConfigProxySource {
public function __construct() {
$options = PhabricatorApplicationConfigOptions::loadAllOptions();
$options = mpull($options, 'getDefault');
$this->setSource(new PhabricatorConfigDictionarySource($options));
}
public function loadExternalOptions() {
$options = PhabricatorApplicationConfigOptions::loadAllOptions(true);
$options = mpull($options, 'getDefault');
$this->setKeys($options);
}
}