Differential D9871 Diff 23765 src/infrastructure/sms/adapter/PhabricatorSMSImplementationAdapter.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/sms/adapter/PhabricatorSMSImplementationAdapter.php
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | abstract class PhabricatorSMSImplementationAdapter { | ||||
/** | /** | ||||
* Convenience function to handle sending an SMS. | * Convenience function to handle sending an SMS. | ||||
*/ | */ | ||||
public static function sendSMS(array $to_numbers, $body) { | public static function sendSMS(array $to_numbers, $body) { | ||||
PhabricatorWorker::scheduleTask( | PhabricatorWorker::scheduleTask( | ||||
'PhabricatorSMSDemultiplexWorker', | 'PhabricatorSMSDemultiplexWorker', | ||||
array( | array( | ||||
'toNumbers' => $to_numbers, | 'toNumbers' => $to_numbers, | ||||
'body' => $body)); | 'body' => $body, | ||||
), | |||||
PhabricatorWorker::PRIORITY_ALERTS); | |||||
} | } | ||||
} | } |