Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-02-15 02:11:10 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-02-15 02:11:10 +0400
commit750ffa82317a6538384a9680d3fe5bc4b0395c70 (patch)
treefeb8113332fda566d4343451eda9b95b0015e41e /lib/private/server.php
parentdf282d9ef8e040833574fac5c5fd3cbbae1b3209 (diff)
parentd6576c640c429d24a6329573c0dfaf99d82ac867 (diff)
Merge pull request #7156 from owncloud/backgroundjob-public
Add the background job list to the public server container
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index fc8f170dc4a..7696fc207fd 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -151,6 +151,13 @@ class Server extends SimpleContainer implements IServerContainer {
$this->registerService('AvatarManager', function($c) {
return new AvatarManager();
});
+ $this->registerService('JobList', function ($c) {
+ /**
+ * @var Server $c
+ */
+ $config = $c->getConfig();
+ return new \OC\BackgroundJob\JobList($c->getDatabaseConnection(), $config);
+ });
}
/**
@@ -348,4 +355,13 @@ class Server extends SimpleContainer implements IServerContainer {
function getActivityManager() {
return $this->query('ActivityManager');
}
+
+ /**
+ * Returns an job list for controlling background jobs
+ *
+ * @return \OCP\BackgroundJob\IJobList
+ */
+ function getJobList(){
+ return $this->query('JobList');
+ }
}