Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / phame / mail / PhamePostMailReceiver.php
blob3e2f493d3a22fb3aa816fae08107c281cd2aa9d7
1 <?php
3 final class PhamePostMailReceiver
4 extends PhabricatorObjectMailReceiver {
6 public function isEnabled() {
7 return PhabricatorApplication::isClassInstalled(
8 'PhabricatorPhameApplication');
11 protected function getObjectPattern() {
12 return 'J[1-9]\d*';
15 protected function loadObject($pattern, PhabricatorUser $viewer) {
16 $id = (int)substr($pattern, 1);
18 return id(new PhamePostQuery())
19 ->setViewer($viewer)
20 ->withIDs(array($id))
21 ->executeOne();
24 protected function getTransactionReplyHandler() {
25 return new PhamePostReplyHandler();