mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-25 21:19:21 +01:00
Summary: Show the value for all loaded configuration sources. Test Plan: {F28469} {F28470} {F28471} Reviewers: btrahan, codeblock Reviewed By: codeblock CC: aran Maniphest Tasks: T2255 Differential Revision: https://secure.phabricator.com/D4312
31 lines
609 B
PHP
31 lines
609 B
PHP
<?php
|
|
|
|
abstract class PhabricatorConfigSource {
|
|
|
|
private $name;
|
|
|
|
public function setName($name) {
|
|
$this->name = $name;
|
|
return $this;
|
|
}
|
|
|
|
public function getName() {
|
|
return $this->name;
|
|
}
|
|
|
|
abstract public function getKeys(array $keys);
|
|
abstract public function getAllKeys();
|
|
|
|
public function canWrite() {
|
|
return false;
|
|
}
|
|
|
|
public function setKeys(array $keys) {
|
|
throw new Exception("This configuration source does not support writes.");
|
|
}
|
|
|
|
public function deleteKeys(array $keys) {
|
|
throw new Exception("This configuration source does not support writes.");
|
|
}
|
|
|
|
}
|