Add Premium installation/activation UI [PREMIUM-9]

This commit is contained in:
stoletniy
2017-05-11 19:18:14 +03:00
parent 6cbce2fc97
commit 7ebb7bac17
8 changed files with 245 additions and 8 deletions

View File

@@ -75,6 +75,7 @@ class Initializer {
try {
$this->maybeDbUpdate();
$this->setupRenderer();
$this->setupInstaller();
$this->setupLocalizer();
$this->setupMenu();
$this->setupAnalytics();
@@ -136,6 +137,13 @@ class Initializer {
$this->renderer = new Renderer($caching, $debugging);
}
function setupInstaller() {
$installer = new Installer(
Installer::PREMIUM_PLUGIN_SLUG
);
$installer->init();
}
function setupLocalizer() {
$localizer = new Localizer($this->renderer);
$localizer->init();