regularjob.php 385 B

123456789101112131415161718
  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 RegularJob extends \OC\BackgroundJob\Job {
  10. public function run($argument) {
  11. if (is_callable($argument)) {
  12. call_user_func($argument);
  13. }
  14. }
  15. }