queuedjob.php 484 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OC\BackgroundJob\Legacy;
  9. class QueuedJob extends \OC\BackgroundJob\QueuedJob {
  10. public function run($argument) {
  11. $class = $argument['klass'];
  12. $method = $argument['method'];
  13. $parameters = $argument['parameters'];
  14. call_user_func(array($class, $method), $parameters);
  15. }
  16. }