@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 DiffusionIdentityAssigneeEditField
4 extends PhabricatorTokenizerEditField {
5
6 protected function newDatasource() {
7 return new DiffusionIdentityAssigneeDatasource();
8 }
9
10 protected function newHTTPParameterType() {
11 return new AphrontUserListHTTPParameterType();
12 }
13
14 protected function newConduitParameterType() {
15 if ($this->getIsSingleValue()) {
16 return new ConduitUserParameterType();
17 } else {
18 return new ConduitUserListParameterType();
19 }
20 }
21
22}