Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / maniphest / relationship / ManiphestTaskHasCommitRelationship.php
blobe21f15a11cb20331e9cd5bb28228af2e7eeb2f0a
1 <?php
3 final class ManiphestTaskHasCommitRelationship
4 extends ManiphestTaskRelationship {
6 const RELATIONSHIPKEY = 'task.has-commit';
8 public function getEdgeConstant() {
9 return ManiphestTaskHasCommitEdgeType::EDGECONST;
12 protected function getActionName() {
13 return pht('Edit Commits');
16 protected function getActionIcon() {
17 return 'fa-code';
20 public function canRelateObjects($src, $dst) {
21 return ($dst instanceof PhabricatorRepositoryCommit);
24 public function getDialogTitleText() {
25 return pht('Edit Related Commits');
28 public function getDialogHeaderText() {
29 return pht('Current Commits');
32 public function getDialogButtonText() {
33 return pht('Save Related Commits');
36 protected function newRelationshipSource() {
37 return new DiffusionCommitRelationshipSource();