Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / repository / customfield / PhabricatorCommitRepositoryField.php
blobc600a8cb6c4c1271b8abbebba80c40bc155a1f70
1 <?php
3 final class PhabricatorCommitRepositoryField
4 extends PhabricatorCommitCustomField {
6 public function getFieldKey() {
7 return 'diffusion:repository';
10 public function getFieldName() {
11 return pht('Repository');
14 public function getFieldDescription() {
15 return pht('Shows repository in email.');
18 public function shouldDisableByDefault() {
19 return true;
22 public function shouldAppearInTransactionMail() {
23 return true;
26 public function updateTransactionMailBody(
27 PhabricatorMetaMTAMailBody $body,
28 PhabricatorApplicationTransactionEditor $editor,
29 array $xactions) {
31 $repository = $this->getObject()->getRepository();
33 $body->addTextSection(
34 pht('REPOSITORY'),
35 $repository->getMonogram().' '.$repository->getName());