summaryrefslogtreecommitdiffstats
path: root/lib/backgroundjob/legacy/queuedjob.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-06-04 18:19:08 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-06-04 18:19:08 -0400
commitcb9fe475c4481993d2c95b040f7abb653f0971e7 (patch)
tree874e56e888745676fe815c3c8f75e2741ce275af /lib/backgroundjob/legacy/queuedjob.php
parent9ead7c4776bd512c2a50ab917b99dcdc37e8db68 (diff)
parentc59ee99d932eb9a5d7df8fdfb6c318abfdef88b7 (diff)
downloadnextcloud-server-cb9fe475c4481993d2c95b040f7abb653f0971e7.tar.gz
nextcloud-server-cb9fe475c4481993d2c95b040f7abb653f0971e7.zip
Merge branch 'master' into hook-improvements
Conflicts: lib/files/view.php
Diffstat (limited to 'lib/backgroundjob/legacy/queuedjob.php')
-rw-r--r--lib/backgroundjob/legacy/queuedjob.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/backgroundjob/legacy/queuedjob.php b/lib/backgroundjob/legacy/queuedjob.php
new file mode 100644
index 00000000000..2bc001103b8
--- /dev/null
+++ b/lib/backgroundjob/legacy/queuedjob.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OC\BackgroundJob\Legacy;
+
+class QueuedJob extends \OC\BackgroundJob\QueuedJob {
+ public function run($argument) {
+ $class = $argument['klass'];
+ $method = $argument['method'];
+ $parameters = $argument['parameters'];
+ call_user_func(array($class, $method), $parameters);
+ }
+}