Path: blob/master/src/infrastructure/env/PhabricatorConfigProxySource.php
12241 views
<?php12/**3* Configuration source which proxies some other configuration source.4*/5abstract class PhabricatorConfigProxySource6extends PhabricatorConfigSource {78private $source;910final protected function getSource() {11if (!$this->source) {12throw new Exception(pht('No configuration source set!'));13}14return $this->source;15}1617final protected function setSource(PhabricatorConfigSource $source) {18$this->source = $source;19return $this;20}2122public function getAllKeys() {23return $this->getSource()->getAllKeys();24}2526public function getKeys(array $keys) {27return $this->getSource()->getKeys($keys);28}2930public function canWrite() {31return $this->getSource()->canWrite();32}3334public function setKeys(array $keys) {35$this->getSource()->setKeys($keys);36return $this;37}3839public function deleteKeys(array $keys) {40$this->getSource()->deleteKeys($keys);41return $this;42}4344public function setName($name) {45$this->getSource()->setName($name);46return $this;47}4849public function getName() {50return $this->getSource()->getName();51}5253}545556