summaryrefslogtreecommitdiffstats
path: root/appinfo/application.php
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 eaeafc858..d80498a4a 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -29,6 +29,7 @@ use \OCA\News\Controller\UtilityApiController;
use \OCA\News\Controller\FolderApiController;
use \OCA\News\Controller\FeedApiController;
use \OCA\News\Controller\ItemApiController;
+use \OCA\News\Controller\AppController;
use \OCA\News\Service\FolderService;
use \OCA\News\Service\FeedService;
@@ -169,6 +170,14 @@ class Application extends App {
);
});
+ $container->registerService('AppController', function($c) {
+ return new AppController(
+ $c->query('AppName'),
+ $c->query('Request'),
+ $c->query('ServerContainer')->getURLGenerator(),
+ $c->query('AppConfig')
+ );
+ });
/**
* Business Layer