Get rid of static instantiation of JSON API

[MAILPOET-1689]
This commit is contained in:
Rostislav Wolny
2018-12-12 11:02:31 +01:00
parent ece5e9a9d1
commit de5385ed03
3 changed files with 2 additions and 31 deletions

View File

@@ -98,7 +98,6 @@ class Initializer {
function loadContainer() {
$this->container = ContainerWrapper::getInstance(WP_DEBUG);
API\API::injectContainer($this->container);
}
function checkRequirements() {
@@ -260,8 +259,7 @@ class Initializer {
}
function setupJSONAPI() {
$json_api = API\API::JSON();
$json_api->init();
$this->container->get(API\JSON\API::class)->init();
}
function setupRouter() {