chore(previews): drop long deprecated registerProvider from IPreview

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2026-04-24 16:28:52 -04:00 committed by Carl Schwan
parent 59d330095d
commit 07bac538e2
No known key found for this signature in database
GPG key ID: 02325448204E452A

View file

@ -5,8 +5,6 @@
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal Nextcloud classes
namespace OCP;
@ -35,19 +33,6 @@ interface IPreview {
*/
public const MODE_COVER = 'cover';
/**
* In order to improve lazy loading a closure can be registered which will be
* called in case preview providers are actually requested
*
* @param string $mimeTypeRegex Regex with the mime types that are supported by this provider
* @param ProviderClosure $callable
* @since 8.1.0
* @see \OCP\AppFramework\Bootstrap\IRegistrationContext::registerPreviewProvider
*
* @deprecated 23.0.0 Register your provider via the IRegistrationContext when booting the app
*/
public function registerProvider(string $mimeTypeRegex, Closure $callable): void;
/**
* Get all providers
* @return array<string, list<ProviderClosure>>