Skip to content

Commit 07bac53

Browse files
joshtrichardsCarlSchwan
authored andcommitted
chore(previews): drop long deprecated registerProvider from IPreview
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent 59d3300 commit 07bac53

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

lib/public/IPreview.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
66
* SPDX-License-Identifier: AGPL-3.0-only
77
*/
8-
// use OCP namespace for all classes that are considered public.
9-
// This means that they should be used by apps instead of the internal Nextcloud classes
108

119
namespace OCP;
1210

@@ -35,19 +33,6 @@ interface IPreview {
3533
*/
3634
public const MODE_COVER = 'cover';
3735

38-
/**
39-
* In order to improve lazy loading a closure can be registered which will be
40-
* called in case preview providers are actually requested
41-
*
42-
* @param string $mimeTypeRegex Regex with the mime types that are supported by this provider
43-
* @param ProviderClosure $callable
44-
* @since 8.1.0
45-
* @see \OCP\AppFramework\Bootstrap\IRegistrationContext::registerPreviewProvider
46-
*
47-
* @deprecated 23.0.0 Register your provider via the IRegistrationContext when booting the app
48-
*/
49-
public function registerProvider(string $mimeTypeRegex, Closure $callable): void;
50-
5136
/**
5237
* Get all providers
5338
* @return array<string, list<ProviderClosure>>

0 commit comments

Comments
 (0)