mirror of
https://github.com/nextcloud/server.git
synced 2026-10-25 12:15:44 +01:00
Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
33 lines
763 B
PHP
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;
|
|
}
|