summaryrefslogtreecommitdiffstats
path: root/dependencyinjection
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-09-25 23:58:19 +0200
committerRobin Appelman <icewind@owncloud.com>2013-09-25 23:58:19 +0200
commit9498b293c01856a67419b1d3c7d7425658a10a85 (patch)
treec08a9674bc3c370e1a3e8219db8cbeddb872abaa /dependencyinjection
parente6b2dec594475711eaa2cd30aa12f568987e376f (diff)
add article enhancer for comics hosted by the escapist
Diffstat (limited to 'dependencyinjection')
-rw-r--r--dependencyinjection/dicontainer.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index 78e35a313..94806b2f7 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -67,6 +67,7 @@ use OCA\News\Utility\ArticleEnhancer\CADEnhancer;
use OCA\News\Utility\ArticleEnhancer\PennyArcadeEnhancer;
use OCA\News\Utility\ArticleEnhancer\TwoGAGEnhancer;
use OCA\News\Utility\ArticleEnhancer\LeastICouldDoEnhancer;
+use OCA\News\Utility\ArticleEnhancer\EscapistComicEnhancer;
use \OCA\News\Middleware\CORSMiddleware;
@@ -269,6 +270,14 @@ class DIContainer extends BaseContainer {
$enhancer->registerEnhancer('penny-arcade.com', $c['PennyArcadeEnhancer']);
$enhancer->registerEnhancer('twogag.com', $c['TwoGAGEnhancer']);
$enhancer->registerEnhancer('leasticoulddo.com', $c['LeastICouldDoEnhancer']);
+ $enhancer->registerEnhancer('escapistmagazine.com/articles/view/comics/critical-miss', $c['EscapistComicEnhancer']);
+ $enhancer->registerEnhancer('escapistmagazine.com/articles/view/comics/critical-miss', $c['EscapistComicEnhancer']);
+ $enhancer->registerEnhancer('escapistmagazine.com/articles/view/comics/namegame', $c['EscapistComicEnhancer']);
+ $enhancer->registerEnhancer('escapistmagazine.com/articles/view/comics/stolen-pixels', $c['EscapistComicEnhancer']);
+ $enhancer->registerEnhancer('escapistmagazine.com/articles/view/comics/bumhugparade', $c['EscapistComicEnhancer']);
+ $enhancer->registerEnhancer('escapistmagazine.com/articles/view/comics/escapistradiotheater', $c['EscapistComicEnhancer']);
+ $enhancer->registerEnhancer('escapistmagazine.com/articles/view/comics/paused', $c['EscapistComicEnhancer']);
+ $enhancer->registerEnhancer('escapistmagazine.com/articles/view/comics/fraughtwithperil', $c['EscapistComicEnhancer']);
return $enhancer;
});
@@ -325,6 +334,14 @@ class DIContainer extends BaseContainer {
);
});
+ $this['EscapistComicEnhancer'] = $this->share(function($c){
+ return new EscapistComicEnhancer(
+ $c['SimplePieFileFactory'],
+ $c['HTMLPurifier'],
+ $c['feedFetcherTimeout']
+ );
+ });
+
$this['Fetcher'] = $this->share(function($c){
$fetcher = new Fetcher();