1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-25 21:19:21 +01:00
phorge-phorge/src/infrastructure/env/PhabricatorConfigSource.php
epriestley 21efc7cb64 Show all configuration defaults when editing configuration
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
2013-01-01 14:10:33 -08:00

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.");
}
}