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

regularjob.php « legacy « backgroundjob « private « lib - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eb85a30b4bed6e54721dcdbb1cc66be75680abf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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 RegularJob extends \OC\BackgroundJob\Job {
	public function run($argument) {
		if (is_callable($argument)) {
			call_user_func($argument);
		}
	}
}