20 lines
534 B
PHP
20 lines
534 B
PHP
<?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'];
|
|
if (is_callable(array($class, $method))) {
|
|
call_user_func(array($class, $method), $parameters);
|
|
}
|
|
}
|
|
}
|