diff options
Diffstat (limited to 'lib/AppInfo/Application.php')
-rw-r--r-- | lib/AppInfo/Application.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index f6a5dcdd2..88cba4752 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -13,6 +13,7 @@ namespace OCA\News\AppInfo; +use FeedIo\Explorer; use FeedIo\FeedIo; use HTMLPurifier; use HTMLPurifier_Config; @@ -138,6 +139,11 @@ class Application extends App implements IBootstrap return new FeedIo($config->getClient(), $c->get(LoggerInterface::class)); }); + $context->registerService(Explorer::class, function (ContainerInterface $c): Explorer { + $config = $c->get(FetcherConfig::class); + return new Explorer($config->getClient(), $c->get(LoggerInterface::class)); + }); + $context->registerService(Favicon::class, function (ContainerInterface $c): Favicon { $favicon = new Favicon(); $favicon->cache(['dir' => $c->get(ITempManager::class)->getTempBaseDir()]); |