@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
3final class PhabricatorTestController extends PhabricatorController {
4
5 private $config = array();
6
7 public function setConfig($key, $value) {
8 $this->config[$key] = $value;
9 return $this;
10 }
11
12 public function getConfig($key, $default) {
13 return idx($this->config, $key, $default);
14 }
15
16 public function shouldRequireLogin() {
17 return $this->getConfig('login', parent::shouldRequireLogin());
18 }
19
20 public function shouldRequireAdmin() {
21 return $this->getConfig('admin', parent::shouldRequireAdmin());
22 }
23
24 public function shouldAllowPublic() {
25 return $this->getConfig('public', parent::shouldAllowPublic());
26 }
27
28 public function shouldRequireEmailVerification() {
29 return $this->getConfig('email', parent::shouldRequireEmailVerification());
30 }
31
32 public function shouldRequireEnabledUser() {
33 return $this->getConfig('enabled', parent::shouldRequireEnabledUser());
34 }
35
36 public function processRequest() {}
37
38}