Skip to content

Commit e5aae6c

Browse files
committed
feat(search): register unified profile search provider
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 3dbd983 commit e5aae6c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/AppInfo/Application.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use OCA\ProfileFields\Listener\RegisterWorkflowOperationListener;
1717
use OCA\ProfileFields\Listener\UserDeletedCleanupListener;
1818
use OCA\ProfileFields\Notification\Notifier;
19+
use OCA\ProfileFields\Search\ProfileFieldSearchProvider;
1920
use OCP\AppFramework\App;
2021
use OCP\AppFramework\Bootstrap\IBootContext;
2122
use OCP\AppFramework\Bootstrap\IBootstrap;
@@ -42,6 +43,7 @@ public function __construct() {
4243
#[\Override]
4344
public function register(IRegistrationContext $context): void {
4445
$context->registerNotifierService(Notifier::class);
46+
$context->registerSearchProvider(ProfileFieldSearchProvider::class);
4547
$context->registerEventListener('\\OCA\\Settings\\Events\\BeforeTemplateRenderedEvent', BeforeTemplateRenderedListener::class);
4648
$context->registerEventListener(UserDeletedEvent::class, UserDeletedCleanupListener::class);
4749
$context->registerEventListener(RegisterEntitiesEvent::class, RegisterWorkflowEntityListener::class);

0 commit comments

Comments
 (0)