queuedjob.php 484 Bytes
<?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);
	}
}