Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / releeph / mail / ReleephRequestMailReceiver.php
bloba64c7f483f5e69602bf7a72d301c31be8e9a641c
1 <?php
3 final class ReleephRequestMailReceiver extends PhabricatorObjectMailReceiver {
5 public function isEnabled() {
6 $app_class = 'PhabricatorReleephApplication';
7 return PhabricatorApplication::isClassInstalled($app_class);
10 protected function getObjectPattern() {
11 return 'Y[1-9]\d*';
14 protected function loadObject($pattern, PhabricatorUser $viewer) {
15 $id = (int)substr($pattern, 1);
17 return id(new ReleephRequestQuery())
18 ->setViewer($viewer)
19 ->withIDs(array($id))
20 ->executeOne();
23 protected function getTransactionReplyHandler() {
24 return new ReleephRequestReplyHandler();