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

View File

@ -120,8 +120,12 @@ class Initializer {
}
try {
// legacy router
$this->setupRouter();
// new api (will replace legacy router completely)
$this->setupAPI();
$this->setupFrontRouter();
$this->setupPages();
} catch(\Exception $e) {
$this->handleFailedInitialization($e);
@ -187,8 +191,12 @@ class Initializer {
}
function setupAPI() {
$API = new \MailPoet\API\API();
$API->init();
}
function setupFrontRouter() {
$router = new Router\Front();
$router->init();
}
function runQueueSupervisor() {