summaryrefslogtreecommitdiffstats
path: root/dependencyinjection/dicontainer.php
diff options
context:
space:
mode:
Diffstat (limited to 'dependencyinjection/dicontainer.php')
-rw-r--r--dependencyinjection/dicontainer.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index db647e852..42b5b4238 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -43,6 +43,8 @@ use \OCA\News\Db\FeedMapper;
use \OCA\News\Db\ItemMapper;
use \OCA\News\Db\StatusFlag;
+use \OCA\News\External\FeedAPI;
+
use \OCA\News\Utility\Fetcher;
use \OCA\News\Utility\FeedFetcher;
use \OCA\News\Utility\TwitterFetcher;
@@ -150,6 +152,16 @@ class DIContainer extends BaseContainer {
/**
+ * External API
+ */
+ $this['FeedAPI'] = $this->share(function($c){
+ return new FeedAPI($c['API'],
+ $c['FolderBusinessLayer'],
+ $c['FeedBusinessLayer'],
+ $c['ItemBusinessLayer']);
+ });
+
+ /**
* Utility
*/
$this['Fetcher'] = $this->share(function($c){