Moved lib/API to lib/Router

- renamed lib/API/API.php to lib/Router/Front.php
- updated namespaces in various file to account for namespace change
This commit is contained in:
Jonathan Labreuille
2016-07-28 16:57:36 +02:00
parent d0fb94b3f8
commit 008fdb94c5
10 changed files with 42 additions and 35 deletions

16
lib/Router/Queue.php Normal file
View File

@ -0,0 +1,16 @@
<?php
namespace MailPoet\Router;
use MailPoet\Cron\Daemon;
if(!defined('ABSPATH')) exit;
class Queue {
const ENDPOINT = 'queue';
const ACTION_RUN = 'run';
static function run($data) {
$queue = new Daemon($data);
$queue->run();
}
}