Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/env/PhabricatorEnv.php
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | private static function buildConfigurationSourceStack() { | ||||
} | } | ||||
// If custom libraries specify config options, they won't get default | // If custom libraries specify config options, they won't get default | ||||
// values as the Default source has already been loaded, so we get it to | // values as the Default source has already been loaded, so we get it to | ||||
// pull in all options from non-phabricator libraries now they are loaded. | // pull in all options from non-phabricator libraries now they are loaded. | ||||
$default_source->loadExternalOptions(); | $default_source->loadExternalOptions(); | ||||
// If this install has site config sources, load them now. | // If this install has site config sources, load them now. | ||||
$site_sources = id(new PhutilSymbolLoader()) | $site_sources = id(new PhutilClassMapQuery()) | ||||
->setAncestorClass('PhabricatorConfigSiteSource') | ->setAncestorClass('PhabricatorConfigSiteSource') | ||||
->loadObjects(); | ->setSortMethod('getPriority') | ||||
$site_sources = msort($site_sources, 'getPriority'); | ->execute(); | ||||
foreach ($site_sources as $site_source) { | foreach ($site_sources as $site_source) { | ||||
$stack->pushSource($site_source); | $stack->pushSource($site_source); | ||||
} | } | ||||
try { | try { | ||||
$stack->pushSource( | $stack->pushSource( | ||||
id(new PhabricatorConfigDatabaseSource('default')) | id(new PhabricatorConfigDatabaseSource('default')) | ||||
->setName(pht('Database'))); | ->setName(pht('Database'))); | ||||
▲ Show 20 Lines • Show All 680 Lines • Show Last 20 Lines |