1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-23 05:01:13 +01:00

Mmmm, Countdown Tokens

Summary: Allow Countdowns to reveive tokens

Test Plan: Give token, see token.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13688
This commit is contained in:
Chad Little 2015-07-23 10:56:00 -07:00
parent 3bfb436296
commit 062f38e163
2 changed files with 9 additions and 0 deletions

View file

@ -5610,6 +5610,7 @@ phutil_register_library_map(array(
'PhabricatorFlaggableInterface',
'PhabricatorSubscribableInterface',
'PhabricatorApplicationTransactionInterface',
'PhabricatorTokenReceiverInterface',
'PhabricatorSpacesInterface',
'PhabricatorProjectInterface',
),

View file

@ -6,6 +6,7 @@ final class PhabricatorCountdown extends PhabricatorCountdownDAO
PhabricatorFlaggableInterface,
PhabricatorSubscribableInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorTokenReceiverInterface,
PhabricatorSpacesInterface,
PhabricatorProjectInterface {
@ -89,6 +90,13 @@ final class PhabricatorCountdown extends PhabricatorCountdownDAO
return $timeline;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */
public function getUsersToNotifyOfTokenGiven() {
return array($this->getAuthorPHID());
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */