summaryrefslogtreecommitdiffstats
path: root/fetcher
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-19 13:20:54 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-19 13:21:11 +0200
commit517e4ca5435106ab5304849248cbea4e9dffd4b0 (patch)
tree0f00076f012791b39c710994f695abf723546062 /fetcher
parentbd35b98d2c130f058b182f726636ee971625823b (diff)
split up api class for easier testing and clearer code
Diffstat (limited to 'fetcher')
-rw-r--r--fetcher/feedfetcher.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php
index 6808465c2..61d800941 100644
--- a/fetcher/feedfetcher.php
+++ b/fetcher/feedfetcher.php
@@ -25,7 +25,6 @@
namespace OCA\News\Fetcher;
-use \OCA\News\Core\API;
use \OCA\News\Db\Item;
use \OCA\News\Db\Feed;
use \OCA\News\Utility\FaviconFetcher;
@@ -35,7 +34,6 @@ use \OCA\News\Utility\Config;
class FeedFetcher implements IFeedFetcher {
- private $api;
private $cacheDirectory;
private $cacheDuration;
private $faviconFetcher;
@@ -46,13 +44,11 @@ class FeedFetcher implements IFeedFetcher {
private $proxyPort;
private $proxyAuth;
- public function __construct(API $api,
- SimplePieAPIFactory $simplePieFactory,
+ public function __construct(SimplePieAPIFactory $simplePieFactory,
FaviconFetcher $faviconFetcher,
$time,
$cacheDirectory,
Config $config){
- $this->api = $api;
$this->cacheDirectory = $cacheDirectory;
$this->cacheDuration = $config->getSimplePieCacheDuration();
$this->fetchTimeout = $config->getFeedFetcherTimeout();