16 lines
257 B
PHP
16 lines
257 B
PHP
<?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();
|
|
}
|
|
} |