diff options
Diffstat (limited to 'appinfo/application.php')
-rw-r--r-- | appinfo/application.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php index 84b0440f3..3820603b0 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -55,6 +55,7 @@ use \OCA\News\Utility\ProxyConfigParser; use \OCA\News\Fetcher\Fetcher; use \OCA\News\Fetcher\FeedFetcher; +use \OCA\News\Fetcher\YoutubeFetcher; use \OCA\News\ArticleEnhancer\Enhancer; use \OCA\News\ArticleEnhancer\GlobalArticleEnhancer; @@ -466,6 +467,7 @@ class Application extends App { // register fetchers in order // the most generic fetcher should be the last one + $fetcher->registerFetcher($c->query('YoutubeFetcher')); $fetcher->registerFetcher($c->query('FeedFetcher')); return $fetcher; @@ -480,6 +482,12 @@ class Application extends App { ); }); + $container->registerService('YoutubeFetcher', function($c) { + return new YoutubeFetcher( + $c->query('FeedFetcher') + ); + }); + $container->registerService('StatusFlag', function() { return new StatusFlag(); }); |