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) {
22 protected function didCatchDuplicateKeyException(
23 PhabricatorLiskDAO
$object,
28 $errors[] = new PhabricatorApplicationTransactionValidationError(
29 PhabricatorPackagesVersionNameTransaction
::TRANSACTIONTYPE
,
32 'The version "%s" already exists for this package. Each version '.
33 'must have a unique name.',
37 throw new PhabricatorApplicationTransactionValidationException($errors);