mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
chore(previews): drop long deprecated registerProvider from IPreview
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
59d330095d
commit
07bac538e2
1 changed files with 0 additions and 15 deletions
|
|
@ -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>>
|
||||
|
|
|
|||
Loading…
Reference in a new issue