Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / packages / editor / PhabricatorPackagesVersionEditor.php
blob72bde82738b59b71006efa45851450835f9b6065
1 <?php
3 final class PhabricatorPackagesVersionEditor
4 extends PhabricatorPackagesEditor {
6 public function getEditorObjectsDescription() {
7 return pht('Package Versions');
10 public function getCreateObjectTitle($author, $object) {
11 return pht('%s created this version.', $author);
14 public function getCreateObjectTitleForFeed($author, $object) {
15 return pht('%s created %s.', $author, $object);
18 protected function getMailTo(PhabricatorLiskDAO $object) {
19 return array();
22 protected function didCatchDuplicateKeyException(
23 PhabricatorLiskDAO $object,
24 array $xactions,
25 Exception $ex) {
27 $errors = array();
28 $errors[] = new PhabricatorApplicationTransactionValidationError(
29 PhabricatorPackagesVersionNameTransaction::TRANSACTIONTYPE,
30 pht('Duplicate'),
31 pht(
32 'The version "%s" already exists for this package. Each version '.
33 'must have a unique name.',
34 $object->getName()),
35 null);
37 throw new PhabricatorApplicationTransactionValidationException($errors);