mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-24 07:42:40 +01:00
21efc7cb64
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
54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Configuration source which proxies some other configuration source.
|
|
*/
|
|
abstract class PhabricatorConfigProxySource
|
|
extends PhabricatorConfigSource {
|
|
|
|
private $source;
|
|
|
|
final protected function getSource() {
|
|
if (!$this->source) {
|
|
throw new Exception("No configuration source set!");
|
|
}
|
|
return $this->source;
|
|
}
|
|
|
|
final protected function setSource(PhabricatorConfigSource $source) {
|
|
$this->source = $source;
|
|
return $this;
|
|
}
|
|
|
|
public function getAllKeys() {
|
|
return $this->getSource()->getAllKeys();
|
|
}
|
|
|
|
public function getKeys(array $keys) {
|
|
return $this->getSource()->getKeys($keys);
|
|
}
|
|
|
|
public function canWrite() {
|
|
return $this->getSource()->canWrite();
|
|
}
|
|
|
|
public function setKeys(array $keys) {
|
|
$this->getSource()->setKeys($keys);
|
|
return $this;
|
|
}
|
|
|
|
public function deleteKeys(array $keys) {
|
|
$this->getSource()->deleteKeys();
|
|
return $this;
|
|
}
|
|
|
|
public function setName($name) {
|
|
$this->getSource()->setName($name);
|
|
return $this;
|
|
}
|
|
|
|
public function getName() {
|
|
return $this->getSource()->getName();
|
|
}
|
|
|
|
}
|