summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-21 13:01:10 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-21 13:01:10 +0100
commitdb5ba2b807c3765c9d23b46cd424d2215ed3fc1c (patch)
tree74c36fb206b50a03488d062a32a913dfd2f481db
parent7c857a8f9e57d1ea5560354dadb64d57908eddf6 (diff)
added additional controllers in the container
-rw-r--r--appinfo/routes.php4
-rw-r--r--dependencyinjection/dicontainer.php11
2 files changed, 12 insertions, 3 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 18333c3c0..85e63486e 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -193,9 +193,7 @@ $this->create('news_usersettings_read_hide', '/usersettings/read/hide')->post()-
}
);
-/**
- * External API
- */
+
/**
* Feed API
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index 2dce25e17..89f78cc93 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -31,6 +31,8 @@ use OCA\AppFramework\DependencyInjection\DIContainer as BaseContainer;
use OCA\News\Controller\FolderController;
use OCA\News\Controller\FeedController;
use OCA\News\Controller\ItemController;
+use OCA\News\Controller\ExportController;
+use OCA\News\Controller\UserSettingsController;
use OCA\News\Bl\FolderBl;
use OCA\News\Bl\FeedBl;
@@ -67,6 +69,15 @@ class DIContainer extends BaseContainer {
return new ItemController($c['API'], $c['Request'], $c['ItemBl']);
});
+ $this['ExportController'] = $this->share(function($c){
+ return new ExportController($c['API'], $c['Request'],
+ $c['FolderBl'], $c['FeedBl']);
+ });
+
+ $this['UserSettingsController'] = $this->share(function($c){
+ return new UserSettingsController($c['API'], $c['Request']);
+ });
+
/**
* Business
*/