Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / differential / mail / DifferentialRevisionMailReceiver.php
blob0fe8583a1d6e05ac99694fa0b5746b6edc659b95
1 <?php
3 final class DifferentialRevisionMailReceiver
4 extends PhabricatorObjectMailReceiver {
6 public function isEnabled() {
7 return PhabricatorApplication::isClassInstalled(
8 'PhabricatorDifferentialApplication');
11 protected function getObjectPattern() {
12 return 'D[1-9]\d*';
15 protected function loadObject($pattern, PhabricatorUser $viewer) {
16 $id = (int)substr($pattern, 1);
18 return id(new DifferentialRevisionQuery())
19 ->setViewer($viewer)
20 ->withIDs(array($id))
21 ->needReviewers(true)
22 ->needReviewerAuthority(true)
23 ->needActiveDiffs(true)
24 ->executeOne();
27 protected function getTransactionReplyHandler() {
28 return new DifferentialReplyHandler();