- 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

@ -49,7 +49,7 @@ class Initializer {
function onInit() {
$this->setupRouter();
$this->setupPublicAPI();
$this->setupAPI();
$this->setupPages();
}
@ -171,13 +171,9 @@ class Initializer {
$hooks->init();
}
function setupPublicAPI() {
try {
$publicAPI = new PublicAPI();
$publicAPI->init();
} catch(\Exception $e) {
// continue execution
}
function setupAPI() {
$API = new \MailPoet\API\API();
$API->init();
}
function runQueueSupervisor() {