summaryrefslogtreecommitdiffstats
path: root/businesslayer/feedbusinesslayer.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-09 16:10:48 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-09 22:52:27 +0200
commit643fa4624dd7ba2db1349f16131bf330aeee3387 (patch)
tree73bc787a3eb1ed5f53ab932187546c980ac50bb5 /businesslayer/feedbusinesslayer.php
parentefe9db1e064c9736fe35c27040ee60fa28ca8d4d (diff)
port to internal controller, some routes are still broken
Diffstat (limited to 'businesslayer/feedbusinesslayer.php')
-rw-r--r--businesslayer/feedbusinesslayer.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/businesslayer/feedbusinesslayer.php b/businesslayer/feedbusinesslayer.php
index 76763aae7..1322bc73f 100644
--- a/businesslayer/feedbusinesslayer.php
+++ b/businesslayer/feedbusinesslayer.php
@@ -34,7 +34,8 @@ use \OCA\News\Db\ItemMapper;
use \OCA\News\Fetcher\Fetcher;
use \OCA\News\Fetcher\FetcherException;
use \OCA\News\ArticleEnhancer\Enhancer;
-use \OCA\News\Utility\TimeFactory;
+use \OCA\News\Utility\Config;
+
class FeedBusinessLayer extends BusinessLayer {
@@ -48,8 +49,8 @@ class FeedBusinessLayer extends BusinessLayer {
public function __construct(FeedMapper $feedMapper, Fetcher $feedFetcher,
ItemMapper $itemMapper, API $api,
- TimeFactory $timeFactory,
- $autoPurgeMinimumInterval,
+ $timeFactory,
+ Config $config,
Enhancer $enhancer,
$purifier){
parent::__construct($feedMapper);
@@ -57,7 +58,7 @@ class FeedBusinessLayer extends BusinessLayer {
$this->itemMapper = $itemMapper;
$this->api = $api;
$this->timeFactory = $timeFactory;
- $this->autoPurgeMinimumInterval = $autoPurgeMinimumInterval;
+ $this->autoPurgeMinimumInterval = $config->getAutoPurgeMinimumInterval();
$this->enhancer = $enhancer;
$this->purifier = $purifier;
}