summaryrefslogtreecommitdiffstats
path: root/lib/AppInfo
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-25 09:57:35 +0100
committerBernhard Posselt <BernhardPosselt@users.noreply.github.com>2016-11-25 09:57:35 +0100
commit547b977c492257bcd4530ab9c2f2bbb22051128e (patch)
treebcb663809074864e50488e8331695789a9d91e6e /lib/AppInfo
parent72e4949ea88812ee99bdb771ef35b4cbcabb26df (diff)
use non depricated public api to register background job (#59)
Diffstat (limited to 'lib/AppInfo')
-rw-r--r--lib/AppInfo/Application.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index ce366ecaa..be81c0f2b 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -16,6 +16,7 @@ namespace OCA\News\AppInfo;
use HTMLPurifier;
use HTMLPurifier_Config;
+use OCP\BackgroundJob\IJobList;
use PicoFeed\Config\Config as PicoFeedConfig;
use PicoFeed\Reader\Reader as PicoFeedReader;
@@ -63,7 +64,8 @@ class Application extends App {
$this->registerService(AppConfig::class, function($c) {
$config = new AppConfig(
$c->query(INavigationManager::class),
- $c->query(IURLGenerator::class)
+ $c->query(IURLGenerator::class),
+ $c->query(IJobList::class)
);
$config->loadConfig($c->query('info'));