summaryrefslogtreecommitdiffstats
path: root/dependencyinjection
diff options
context:
space:
mode:
Diffstat (limited to 'dependencyinjection')
-rw-r--r--dependencyinjection/dicontainer.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index 761b95f64..e6a137853 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -43,6 +43,7 @@ use \OCA\News\Db\FeedMapper;
use \OCA\News\Db\ItemMapper;
use \OCA\News\Db\StatusFlag;
+use \OCA\News\External\NewsAPI;
use \OCA\News\External\FolderAPI;
use \OCA\News\External\FeedAPI;
use \OCA\News\External\ItemAPI;
@@ -156,6 +157,10 @@ class DIContainer extends BaseContainer {
/**
* External API
*/
+ $this['NewsAPI'] = $this->share(function($c){
+ return new NewsAPI($c['API'], $c['Request']);
+ });
+
$this['FolderAPI'] = $this->share(function($c){
return new FolderAPI($c['API'], $c['Request'],
$c['FolderBusinessLayer']);