Skip to content

Commit 7195626

Browse files
authored
chore: move task types to the backend (#248)
This is done to lift the condition on this PHP app being available for the provider registration in the backend to succeed. Now both the custom task types and the providers live in the backend. Signed-off-by: kyteinsky <kyteinsky@gmail.com>
1 parent e0f60f0 commit 7195626

3 files changed

Lines changed: 0 additions & 202 deletions

File tree

lib/AppInfo/Application.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
use OCA\ContextChat\Listener\FileListener;
1313
use OCA\ContextChat\Listener\ShareListener;
1414
use OCA\ContextChat\Listener\UserDeletedListener;
15-
use OCA\ContextChat\TaskProcessing\ContextChatSearchTaskType;
16-
use OCA\ContextChat\TaskProcessing\ContextChatTaskType;
1715
use OCP\App\Events\AppDisableEvent;
1816
use OCP\AppFramework\App;
1917
use OCP\AppFramework\Bootstrap\IBootContext;
@@ -84,8 +82,6 @@ public function register(IRegistrationContext $context): void {
8482
$context->registerEventListener(ShareCreatedEvent::class, ShareListener::class);
8583
$context->registerEventListener(ShareDeletedEvent::class, ShareListener::class);
8684
}
87-
$context->registerTaskProcessingTaskType(ContextChatTaskType::class);
88-
$context->registerTaskProcessingTaskType(ContextChatSearchTaskType::class);
8985
}
9086

9187
public function boot(IBootContext $context): void {

lib/TaskProcessing/ContextChatSearchTaskType.php

Lines changed: 0 additions & 99 deletions
This file was deleted.

lib/TaskProcessing/ContextChatTaskType.php

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)