Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / diffusion / herald / DiffusionPreCommitRefRepositoryProjectsHeraldField.php
blob17670a1c413ad51b42739424b59721d1bd4cae71
1 <?php
3 final class DiffusionPreCommitRefRepositoryProjectsHeraldField
4 extends DiffusionPreCommitRefHeraldField {
6 const FIELDCONST = 'diffusion.pre.ref.repository.projects';
8 public function getHeraldFieldName() {
9 return pht('Repository projects');
12 public function getHeraldFieldValue($object) {
13 return PhabricatorEdgeQuery::loadDestinationPHIDs(
14 $this->getAdapter()->getHookEngine()->getRepository()->getPHID(),
15 PhabricatorProjectObjectHasProjectEdgeType::EDGECONST);
18 protected function getHeraldFieldStandardType() {
19 return self::STANDARD_PHID_LIST;
22 protected function getDatasource() {
23 return new PhabricatorProjectDatasource();