@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
3/**
4 * Empty authentication adapter with no logic.
5 *
6 * This adapter can be used when you need an adapter for some technical reason
7 * but it doesn't make sense to put logic inside it.
8 */
9final class PhutilEmptyAuthAdapter extends PhutilAuthAdapter {
10
11 private $accountID;
12 private $adapterType;
13 private $adapterDomain;
14
15 public function setAdapterDomain($adapter_domain) {
16 $this->adapterDomain = $adapter_domain;
17 return $this;
18 }
19
20 public function getAdapterDomain() {
21 return $this->adapterDomain;
22 }
23
24 public function setAdapterType($adapter_type) {
25 $this->adapterType = $adapter_type;
26 return $this;
27 }
28
29 public function getAdapterType() {
30 return $this->adapterType;
31 }
32
33 public function setAccountID($account_id) {
34 $this->accountID = $account_id;
35 return $this;
36 }
37
38 public function getAccountID() {
39 return $this->accountID;
40 }
41
42}