Files
nextcloud-server-mirror/lib/unstable/Search/IAccountScopedSearchProviderRegistry.php
Carl Schwan aa5f9aaa6d refactor(search): Move search of expensive fields to separate flow
Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2026-09-23 17:46:29 +02:00

33 lines
763 B
PHP

<?php
/*
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
declare(strict_types=1);
namespace NCU\Search;
use OCP\AppFramework\Attribute\Consumable;
/**
* Looks up the {@see IAccountScopedSearchProvider}'s apps declared via
* {@see IRegistrationContext::registerAccountScopedSearchProvider}.
*
* @experimental 36.0.0
*/
#[Consumable(since: '36.0.0')]
interface IAccountScopedSearchProviderRegistry {
/**
* @return array<non-empty-lowercase-string, IAccountScopedSearchProvider> keyed by getId()
* @experimental 36.0.0
*/
public function getProviders(): array;
/**
* @experimental 36.0.0
*/
public function getProvider(string $id): ?IAccountScopedSearchProvider;
}