mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
6a5369b173
Summary: Fixes T2792. This adds a pluggable configuration layer between all the stuff on disk (local/file) and the runtime configurable stuff (database). An install can subclass this source and: - For Phacility, query a remote service (like Almanac) to retrieve hostname-based configuration, allowing one install to serve multiple instances. - Maybe for Phacility, query a remote service (like Phlux) to retrieve sitevar-like configuration (e.g., put everything in readonly mode to deal with a maintenance issue?). Not sure if we'll do this or not. We might just nuke Phlux since Almanac is sort-of-a-superset of it for our purposes. - For third parties, query some other remote service if that makes config management easier. In particular, it would theoretically let you put locked config in Zookeeper or whatever else you want. Test Plan: Added a fake source and saw it inject configuration. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T2792 Differential Revision: https://secure.phabricator.com/D10787
17 lines
354 B
PHP
17 lines
354 B
PHP
<?php
|
|
|
|
/**
|
|
* Optional configuration source which loads between local sources and the
|
|
* database source.
|
|
*
|
|
* Subclasses of this source can read external configuration sources (like a
|
|
* remote server).
|
|
*/
|
|
abstract class PhabricatorConfigSiteSource
|
|
extends PhabricatorConfigProxySource {
|
|
|
|
public function getPriority() {
|
|
return 1000.0;
|
|
}
|
|
|
|
}
|