- Refactors API

- Updates existing classes to use the refactored API methods
This commit is contained in:
Vlad
2016-07-05 14:45:40 -04:00
parent 38199dc96f
commit cb2faec8b2
16 changed files with 195 additions and 117 deletions

View File

@ -0,0 +1,16 @@
<?php
namespace MailPoet\API\Endpoints;
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();
}
}