*/ class SetUpQueueTasks extends InstallAction { public function __invoke($params) { /** @var TaskLogInterface|ConfigurableService $taskLogService */ $taskLogService = $this->getServiceManager()->get(TaskLogInterface::SERVICE_ID); $taskLogService->linkTaskToCategory(ImportQtiTest::class, TaskLogInterface::CATEGORY_IMPORT); $this->registerService(TaskLogInterface::SERVICE_ID, $taskLogService); return \common_report_Report::createSuccess('Task(s) successfully set up.'); } }