Differential D11044 Diff 26524 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 75 Lines • ▼ Show 20 Lines | abstract class PhabricatorSMSImplementationAdapter { | ||||
| */ | */ | ||||
| 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); | array( | ||||
| 'priority' => PhabricatorWorker::PRIORITY_ALERTS, | |||||
| )); | |||||
| } | } | ||||
| } | } | ||||