diff options
Diffstat (limited to 'dependencyinjection')
-rw-r--r-- | dependencyinjection/dicontainer.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php index 970900ea5..319517ba1 100644 --- a/dependencyinjection/dicontainer.php +++ b/dependencyinjection/dicontainer.php @@ -41,6 +41,7 @@ use OCA\News\Bl\ItemBl; use OCA\News\Db\FolderMapper; use OCA\News\Db\FeedMapper; use OCA\News\Db\ItemMapper; +use OCA\News\Db\StatusFlag; require_once __DIR__ . '/../3rdparty/SimplePie/autoloader.php'; @@ -99,7 +100,7 @@ class DIContainer extends BaseContainer { }); $this['ItemBl'] = $this->share(function($c){ - return new ItemBl($c['ItemMapper']); + return new ItemBl($c['ItemMapper'], $c['StatusFlag']); }); @@ -126,6 +127,10 @@ class DIContainer extends BaseContainer { return new FeedFetcher(); }); + $this['StatusFlag'] = $this->share(function($c){ + return new StatusFlag(); + }); + } } |