diff options
author | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2015-03-30 19:40:07 +0200 |
---|---|---|
committer | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2015-03-30 19:40:07 +0200 |
commit | 05985bc2965f8a332e98121050ba1f07343bbc0f (patch) | |
tree | 96ca5d59b7ce3c9d3678dd95d8595145d1d5df08 /appinfo/application.php | |
parent | eb7fc97f33cadcf041a06915b8f1650a9b4f6bbb (diff) | |
parent | ee3d2332ec97487893ae5f1f46b599c550b25eb6 (diff) |
Merge pull request #751 from owncloud/next
Changes for 8.1
Diffstat (limited to 'appinfo/application.php')
-rw-r--r-- | appinfo/application.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/appinfo/application.php b/appinfo/application.php index dfbd81be4..106e8062f 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -13,8 +13,6 @@ namespace OCA\News\AppInfo; -require_once __DIR__ . '/autoload.php'; - use HTMLPurifier; use HTMLPurifier_Config; @@ -52,7 +50,7 @@ class Application extends App { */ $container->registerService('OCA\News\Db\ItemMapper', function($c) { return $c->query('OCA\News\Db\MapperFactory')->getItemMapper( - $c->query('OCP\IDb') + $c->query('OCP\IDBConnection') ); }); @@ -86,7 +84,7 @@ class Application extends App { /** * Utility */ - $container->registerService('ConfigPath', function($c) { + $container->registerService('ConfigPath', function() { return 'config.ini'; }); @@ -130,7 +128,8 @@ class Application extends App { return new HTMLPurifier($config); }); - $container->registerService('OCA\News\ArticleEnhancer\Enhancer', function($c) { + $container->registerService('OCA\News\ArticleEnhancer\Enhancer', + function($c) { $enhancer = new Enhancer(); // register simple enhancers from config json file @@ -216,13 +215,18 @@ class Application extends App { // register fetchers in order // the most generic fetcher should be the last one - $fetcher->registerFetcher($c->query('OCA\News\Fetcher\YoutubeFetcher')); - $fetcher->registerFetcher($c->query('OCA\News\Fetcher\FeedFetcher')); + $fetcher->registerFetcher( + $c->query('OCA\News\Fetcher\YoutubeFetcher') + ); + $fetcher->registerFetcher( + $c->query('OCA\News\Fetcher\FeedFetcher') + ); return $fetcher; }); - $container->registerService('OCA\News\Explore\RecommendedSites', function($c) { + $container->registerService('OCA\News\Explore\RecommendedSites', + function() { return new RecommendedSites(__DIR__ . '/../explore'); }); } |