Unverified Commit ef4c18a2 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Deprecate our old, internal background job base classes



The OCP ones should be used instead. This makes it more visible in our
IDEs that the base class of background job should be replaced.
Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent a6bc871c
......@@ -29,6 +29,9 @@ use OCP\BackgroundJob\IJob;
use OCP\BackgroundJob\IJobList;
use OCP\ILogger;
/**
* @deprecated internal class, use \OCP\BackgroundJob\Job
*/
abstract class Job implements IJob {
/** @var int */
protected $id;
......
......@@ -23,6 +23,9 @@
*/
namespace OC\BackgroundJob\Legacy;
/**
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/
class QueuedJob extends \OC\BackgroundJob\QueuedJob {
public function run($argument) {
$class = $argument['klass'];
......
......@@ -24,6 +24,9 @@ namespace OC\BackgroundJob\Legacy;
use OCP\AutoloadNotAllowedException;
/**
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/
class RegularJob extends \OC\BackgroundJob\Job {
public function run($argument) {
try {
......
......@@ -32,6 +32,8 @@ use OCP\ILogger;
* create a background job that is to be executed once
*
* @package OC\BackgroundJob
*
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/
abstract class QueuedJob extends Job {
/**
......
......@@ -34,6 +34,8 @@ use OCP\ILogger;
* create a background job that is to be executed at an interval
*
* @package OC\BackgroundJob
*
* @deprecated internal class, use \OCP\BackgroundJob\TimedJob
*/
abstract class TimedJob extends Job {
protected $interval = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment