Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / phurl / mail / PhabricatorPhurlURLMailReceiver.php
blob14a953bc311bcb3cf8cfbb87c9e4364c5483ddf0
1 <?php
3 final class PhabricatorPhurlURLMailReceiver
4 extends PhabricatorObjectMailReceiver {
6 public function isEnabled() {
7 return PhabricatorApplication::isClassInstalled(
8 'PhabricatorPhurlApplication');
11 protected function getObjectPattern() {
12 return 'U[1-9]\d*';
15 protected function loadObject($pattern, PhabricatorUser $viewer) {
16 $id = (int)substr($pattern, 1);
18 return id(new PhabricatorPhurlURLQuery())
19 ->setViewer($viewer)
20 ->withIDs(array($id))
21 ->executeOne();
24 protected function getTransactionReplyHandler() {
25 return new PhabricatorPhurlURLReplyHandler();