Refactor MP v1 API to obtain services via constructor

[MAILPOET-1637]
This commit is contained in:
Rostislav Wolny
2018-11-14 18:22:28 +01:00
parent 0180a1245b
commit a42787d10d
5 changed files with 132 additions and 75 deletions

View File

@@ -99,6 +99,7 @@ class Initializer {
function loadContainer() {
$container_factory = new ContainerFactory(WP_DEBUG);
$this->container = $container_factory->getContainer();
API\API::injectContainer($this->container);
}
function checkRequirements() {