| 1 |
<?php |
| 2 |
namespace StoreEngine; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
use StoreEngine\Ajax\Addons; |
| 9 |
use StoreEngine\Ajax\Attributes; |
| 10 |
use StoreEngine\Ajax\Checkout; |
| 11 |
use StoreEngine\Ajax\Customers; |
| 12 |
use StoreEngine\Ajax\Dashboard; |
| 13 |
use StoreEngine\Ajax\Order; |
| 14 |
use StoreEngine\Ajax\Posts; |
| 15 |
use StoreEngine\Ajax\Product; |
| 16 |
use StoreEngine\Ajax\Settings; |
| 17 |
use StoreEngine\Ajax\Setup; |
| 18 |
use StoreEngine\Ajax\Shipping; |
| 19 |
use StoreEngine\Ajax\Tools; |
| 20 |
|
| 21 |
class Ajax { |
| 22 |
public static function init() { |
| 23 |
$self = new self(); |
| 24 |
$self->dispatch_hooks(); |
| 25 |
} |
| 26 |
|
| 27 |
public function dispatch_hooks() { |
| 28 |
( new Product() )->dispatch_actions(); |
| 29 |
( new Posts() )->dispatch_actions(); |
| 30 |
( new Settings() )->dispatch_actions(); |
| 31 |
( new Customers() )->dispatch_actions(); |
| 32 |
( new Checkout() )->dispatch_actions(); |
| 33 |
( new Attributes() )->dispatch_actions(); |
| 34 |
( new Addons() )->dispatch_actions(); |
| 35 |
( new Tools() )->dispatch_actions(); |
| 36 |
( new Order() )->dispatch_actions(); |
| 37 |
( new Shipping() )->dispatch_actions(); |
| 38 |
( new Dashboard() )->dispatch_actions(); |
| 39 |
( new Setup() )->dispatch_actions(); |
| 40 |
( new \StoreEngine\Backup\BackupAjaxHandler() )->dispatch_actions(); |
| 41 |
} |
| 42 |
} |
| 43 |
|