Page MenuHomec4science

PhabricatorConfigDefaultSource.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 20:42

PhabricatorConfigDefaultSource.php

<?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);
}
}

Event Timeline