Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sualko/cloud_piwik.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/Application.php')
-rw-r--r--appinfo/Application.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/appinfo/Application.php b/appinfo/Application.php
index fed6193..c483b35 100644
--- a/appinfo/Application.php
+++ b/appinfo/Application.php
@@ -3,6 +3,7 @@ namespace OCA\Piwik\AppInfo;
use OCA\Piwik\Config;
use OCA\Piwik\Controller\SettingsController;
+use OCA\Piwik\Controller\JavaScriptController;
use OCA\Piwik\Migration\Settings as SettingsMigration;
use OCP\AppFramework\App;
use OCP\IContainer;
@@ -34,6 +35,14 @@ class Application extends App
);
});
+ $container->registerService('JavaScriptController', function (IContainer $c) {
+ return new JavaScriptController(
+ $c->query('AppName'),
+ $c->query('Request'),
+ $c->query('OCA\Piwik\Config')
+ );
+ });
+
/**
* Migrations
*/