3 final class PhabricatorBadgesMailReceiver
4 extends PhabricatorObjectMailReceiver
{
6 public function isEnabled() {
7 return PhabricatorApplication
::isClassInstalled(
8 'PhabricatorBadgesApplication');
11 protected function getObjectPattern() {
12 return 'BDGE[1-9]\d*';
15 protected function loadObject($pattern, PhabricatorUser
$viewer) {
16 $id = (int)substr($pattern, 4);
18 return id(new PhabricatorBadgesQuery())
24 protected function getTransactionReplyHandler() {
25 return new PhabricatorBadgesReplyHandler();