LookupServerSendCheck.php 830 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Repair\NC22;
  8. use OC\Core\BackgroundJobs\LookupServerSendCheckBackgroundJob;
  9. use OCP\BackgroundJob\IJobList;
  10. use OCP\IConfig;
  11. use OCP\Migration\IOutput;
  12. use OCP\Migration\IRepairStep;
  13. class LookupServerSendCheck implements IRepairStep {
  14. private IJobList $jobList;
  15. private IConfig $config;
  16. public function __construct(IJobList $jobList, IConfig $config) {
  17. $this->jobList = $jobList;
  18. $this->config = $config;
  19. }
  20. public function getName(): string {
  21. return 'Add background job to set the lookup server share state for users';
  22. }
  23. public function run(IOutput $output): void {
  24. $this->jobList->add(LookupServerSendCheckBackgroundJob::class);
  25. }
  26. }