Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / search / field / PhabricatorSearchSubscribersField.php
blobf3cf2094e911990e558ceb9cfa97552ef6a9dea2
1 <?php
3 final class PhabricatorSearchSubscribersField
4 extends PhabricatorSearchTokenizerField {
6 protected function getDefaultValue() {
7 return array();
10 protected function getValueFromRequest(AphrontRequest $request, $key) {
11 $allow_types = array(
12 PhabricatorProjectProjectPHIDType::TYPECONST,
13 PhabricatorOwnersPackagePHIDType::TYPECONST,
15 return $this->getUsersFromRequest($request, $key, $allow_types);
18 protected function newDatasource() {
19 return new PhabricatorMetaMTAMailableFunctionDatasource();
22 protected function newConduitParameterType() {
23 // TODO: Ideally, this should eventually be a "Subscribers" type which
24 // accepts projects as well.
25 return new ConduitUserListParameterType();