@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class PhabricatorConfigSource extends Phobject {
4
5 private $name;
6
7 public function setName($name) {
8 $this->name = $name;
9 return $this;
10 }
11
12 public function getName() {
13 return $this->name;
14 }
15
16 abstract public function getKeys(array $keys);
17 abstract public function getAllKeys();
18
19 public function canWrite() {
20 return false;
21 }
22
23 public function setKeys(array $keys) {
24 throw new Exception(
25 pht('This configuration source does not support writes.'));
26 }
27
28 public function deleteKeys(array $keys) {
29 throw new Exception(
30 pht('This configuration source does not support writes.'));
31 }
32
33}