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

@@ -1,8 +1,8 @@
<?php
namespace MailPoet\Newsletter;
use MailPoet\API\API;
use MailPoet\API\Endpoints\ViewInBrowser as ViewInBrowserAPI;
use MailPoet\Router\Front as FrontRouter;
use MailPoet\Router\ViewInBrowser as ViewInBrowserEndpoint;
use MailPoet\Models\Subscriber;
class Url {
@@ -34,9 +34,9 @@ class Url {
$queue['id'] :
$queue
);
return API::buildRequest(
ViewInBrowserAPI::ENDPOINT,
ViewInBrowserAPI::ACTION_VIEW,
return FrontRouter::buildRequest(
ViewInBrowserEndpoint::ENDPOINT,
ViewInBrowserEndpoint::ACTION_VIEW,
$data
);
}