From 062f38e163258db51b73f4e01b8ab07dcdc1213d Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 23 Jul 2015 10:56:00 -0700 Subject: [PATCH] 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 --- src/__phutil_library_map__.php | 1 + .../countdown/storage/PhabricatorCountdown.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 4f72ab16f6..8d84b6e618 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -5610,6 +5610,7 @@ phutil_register_library_map(array( 'PhabricatorFlaggableInterface', 'PhabricatorSubscribableInterface', 'PhabricatorApplicationTransactionInterface', + 'PhabricatorTokenReceiverInterface', 'PhabricatorSpacesInterface', 'PhabricatorProjectInterface', ), diff --git a/src/applications/countdown/storage/PhabricatorCountdown.php b/src/applications/countdown/storage/PhabricatorCountdown.php index 8c89d1a901..827fe69af0 100644 --- a/src/applications/countdown/storage/PhabricatorCountdown.php +++ b/src/applications/countdown/storage/PhabricatorCountdown.php @@ -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 )----------------------------------------- */