- Updates remaining router endpoints to use constructor and new constants

This commit is contained in:
Vlad
2016-08-25 09:52:08 -04:00
parent 59d30cc139
commit 3603eeee77
3 changed files with 19 additions and 9 deletions

View File

@@ -9,9 +9,14 @@ class Queue {
const ENDPOINT = 'queue';
const ACTION_RUN = 'run';
public $allowed_actions = array(self::ACTION_RUN);
public $data;
function run($data) {
$queue = new Daemon($data);
function __construct($data) {
$this->data = $data;
}
function run() {
$queue = new Daemon($this->data);
$queue->run();
}
}