File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
119namespace 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>>
You can’t perform that action at this time.
0 commit comments