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

github.com/nextcloud/news.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dependencyinjection/dicontainer.php')
-rw-r--r--dependencyinjection/dicontainer.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index b34c17a3c..377b0f376 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -30,6 +30,8 @@ use \OC\Files\View;
use \OCA\AppFramework\DependencyInjection\DIContainer as BaseContainer;
use \OCA\AppFramework\Middleware\MiddlewareDispatcher;
+use \OCA\News\Core\API;
+
use \OCA\News\Controller\PageController;
use \OCA\News\Controller\FolderController;
use \OCA\News\Controller\FeedController;
@@ -83,6 +85,10 @@ class DIContainer extends BaseContainer {
// tell parent container about the app name
parent::__construct('news');
+ $this['API'] = $this->share(function($c){
+ return new API($c['news']);
+ });
+
/**
* Configuration values
*/