Merge pull request #19492 from demeritcowboy/fatalerrorhandler
[civicrm-core.git] / CRM / SMS / Page / Callback.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17 class CRM_SMS_Page_Callback {
18
19 public function run() {
20 $provider = CRM_SMS_Provider::singleton($_REQUEST);
21
22 if (array_key_exists('status', $_REQUEST)) {
23 $provider->callback();
24 }
25 else {
26 $provider->inbound();
27 }
28 }
29
30 }