Move BG jobs to typed properties
Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
Родитель
f5c92cc4d9
Коммит
1b1711496c
|
@ -32,8 +32,7 @@ use function defined;
|
|||
use function method_exists;
|
||||
|
||||
class CleanupJob extends TimedJob {
|
||||
/** @var CleanupService */
|
||||
private $cleanupService;
|
||||
private CleanupService $cleanupService;
|
||||
|
||||
public function __construct(ITimeFactory $time,
|
||||
CleanupService $cleanupService) {
|
||||
|
|
|
@ -42,23 +42,12 @@ use OCP\BackgroundJob\QueuedJob;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class MigrateImportantJob extends QueuedJob {
|
||||
/** @var MailboxMapper */
|
||||
private $mailboxMapper;
|
||||
|
||||
/** @var MailAccountMapper */
|
||||
private $mailAccountMapper;
|
||||
|
||||
/** @var MailManager */
|
||||
private $mailManager;
|
||||
|
||||
/** @var MigrateImportantFromImapAndDb */
|
||||
private $migration;
|
||||
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
|
||||
/** @var IMAPClientFactory */
|
||||
private $imapClientFactory;
|
||||
private MailboxMapper $mailboxMapper;
|
||||
private MailAccountMapper $mailAccountMapper;
|
||||
private MailManager $mailManager;
|
||||
private MigrateImportantFromImapAndDb $migration;
|
||||
private LoggerInterface $logger;
|
||||
private IMAPClientFactory $imapClientFactory;
|
||||
|
||||
public function __construct(MailboxMapper $mailboxMapper,
|
||||
MailAccountMapper $mailAccountMapper,
|
||||
|
|
|
@ -32,8 +32,7 @@ use function defined;
|
|||
use function method_exists;
|
||||
|
||||
class OutboxWorkerJob extends TimedJob {
|
||||
/** @var OutboxService */
|
||||
private $outboxService;
|
||||
private OutboxService $outboxService;
|
||||
|
||||
public function __construct(ITimeFactory $time,
|
||||
OutboxService $outboxService) {
|
||||
|
|
|
@ -43,23 +43,12 @@ use function method_exists;
|
|||
use function sprintf;
|
||||
|
||||
class SyncJob extends TimedJob {
|
||||
/** @var IUserManager */
|
||||
private $userManager;
|
||||
|
||||
/** @var AccountService */
|
||||
private $accountService;
|
||||
|
||||
/** @var ImapToDbSynchronizer */
|
||||
private $syncService;
|
||||
|
||||
/** @var MailboxSync */
|
||||
private $mailboxSync;
|
||||
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
|
||||
/** @var IJobList */
|
||||
private $jobList;
|
||||
private IUserManager $userManager;
|
||||
private AccountService $accountService;
|
||||
private ImapToDbSynchronizer $syncService;
|
||||
private MailboxSync $mailboxSync;
|
||||
private LoggerInterface $logger;
|
||||
private IJobList $jobList;
|
||||
|
||||
public function __construct(ITimeFactory $time,
|
||||
IUserManager $userManager,
|
||||
|
|
|
@ -38,20 +38,11 @@ use function defined;
|
|||
use function method_exists;
|
||||
|
||||
class TrainImportanceClassifierJob extends TimedJob {
|
||||
/** @var AccountService */
|
||||
private $accountService;
|
||||
|
||||
/** @var ImportanceClassifier */
|
||||
private $classifier;
|
||||
|
||||
/** @var IJobList */
|
||||
private $jobList;
|
||||
|
||||
/** @var IUserPreferences */
|
||||
private $preferences;
|
||||
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
private AccountService $accountService;
|
||||
private ImportanceClassifier $classifier;
|
||||
private IJobList $jobList;
|
||||
private IUserPreferences $preferences;
|
||||
private LoggerInterface $logger;
|
||||
|
||||
public function __construct(ITimeFactory $time,
|
||||
AccountService $accountService,
|
||||
|
|
Загрузка…
Ссылка в новой задаче