diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-09-25 22:43:13 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-09-25 22:43:13 +0200 |
commit | 4f7dfef8831da88395f03913142925cae6aab747 (patch) | |
tree | 48505c94f77a288bccbb65fb1f2c26a59b10116b /dependencyinjection | |
parent | 5c9bd98c12c958392a6ff0c77338732dac21237d (diff) |
add article enhancer for penny-arcade
Diffstat (limited to 'dependencyinjection')
-rw-r--r-- | dependencyinjection/dicontainer.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php index 891b59bd6..2669336dc 100644 --- a/dependencyinjection/dicontainer.php +++ b/dependencyinjection/dicontainer.php @@ -64,6 +64,7 @@ use \OCA\News\Utility\ArticleEnhancer\Enhancer; use \OCA\News\Utility\ArticleEnhancer\CyanideAndHappinessEnhancer; use \OCA\News\Utility\ArticleEnhancer\ThemeRepublicEnhancer; use OCA\News\Utility\ArticleEnhancer\CADEnhancer; +use OCA\News\Utility\ArticleEnhancer\PennyArcadeEnhancer; use \OCA\News\Middleware\CORSMiddleware; @@ -263,6 +264,7 @@ class DIContainer extends BaseContainer { $enhancer->registerEnhancer('explosm.net', $c['CyanideAndHappinessEnhancer']); $enhancer->registerEnhancer('themerepublic.net', $c['ThemeRepublicEnhancer']); $enhancer->registerEnhancer('cad-comic.com', $c['CADEnhancer']); + $enhancer->registerEnhancer('penny-arcade.com', $c['PennyArcadeEnhancer']); return $enhancer; }); @@ -295,6 +297,14 @@ class DIContainer extends BaseContainer { ); }); + $this['PennyArcadeEnhancer'] = $this->share(function($c){ + return new PennyArcadeEnhancer( + $c['SimplePieFileFactory'], + $c['HTMLPurifier'], + $c['feedFetcherTimeout'] + ); + }); + $this['Fetcher'] = $this->share(function($c){ $fetcher = new Fetcher(); |