Skip to content

Commit 90d848f

Browse files
committed
fix: Fix missing dependencies
1 parent 0ca0584 commit 90d848f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Listener/GetTaskProcessingProvidersListener.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
namespace OCA\AppAPI\Listener;
1111

1212
use JsonException;
13+
use OCA\AppAPI\Service\AppAPIService;
14+
use OCA\AppAPI\Service\ExAppService;
1315
use OCA\AppAPI\Service\ProvidersAI\TaskProcessingService;
1416
use OCP\EventDispatcher\Event;
1517
use OCP\EventDispatcher\IEventListener;
@@ -19,6 +21,8 @@
1921
class GetTaskProcessingProvidersListener implements IEventListener {
2022
public function __construct(
2123
private readonly TaskProcessingService $taskProcessingService,
24+
private readonly ExAppService $exAppService,
25+
private readonly AppAPIService $appAPIService,
2226
private readonly LoggerInterface $logger,
2327
) {
2428
}
@@ -32,6 +36,8 @@ public function handle(Event $event): void {
3236
return;
3337
}
3438

39+
$this->taskProcessingService->setExAppService($this->exAppService);
40+
$this->taskProcessingService->setAppAPIService($this->appAPIService);
3541
$exAppsProviders = $this->taskProcessingService->getRegisteredTaskProcessingProviders();
3642

3743
foreach ($exAppsProviders as $exAppProvider) {

0 commit comments

Comments
 (0)