Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate preview providers to new API #2992

Closed
juliusknorr opened this issue Jun 6, 2023 · 1 comment
Closed

Migrate preview providers to new API #2992

juliusknorr opened this issue Jun 6, 2023 · 1 comment

Comments

@juliusknorr
Copy link
Member

juliusknorr commented Jun 6, 2023

Requires to move them to IProviderV2

ERROR: DeprecatedMethod - lib/AppInfo/Application.php:149:20 - The method OCP\IPreview::registerProvider has been marked as deprecated (see https://psalm.dev/001)
		$previewManager->registerProvider('/application\/vnd.ms-excel/', function () use ($container) {


ERROR: DeprecatedMethod - lib/AppInfo/Application.php:153:20 - The method OCP\IPreview::registerProvider has been marked as deprecated (see https://psalm.dev/001)
		$previewManager->registerProvider('/application\/msword/', function () use ($container) {


ERROR: DeprecatedMethod - lib/AppInfo/Application.php:157:20 - The method OCP\IPreview::registerProvider has been marked as deprecated (see https://psalm.dev/001)
		$previewManager->registerProvider('/application\/vnd.openxmlformats-officedocument.*/', function () use ($container) {


ERROR: DeprecatedMethod - lib/AppInfo/Application.php:161:20 - The method OCP\IPreview::registerProvider has been marked as deprecated (see https://psalm.dev/001)
		$previewManager->registerProvider('/application\/vnd.oasis.opendocument.*/', function () use ($container) {


ERROR: DeprecatedMethod - lib/AppInfo/Application.php:165:20 - The method OCP\IPreview::registerProvider has been marked as deprecated (see https://psalm.dev/001)
		$previewManager->registerProvider('/application\/pdf/', function () use ($container) {


@juliusknorr
Copy link
Member Author

Done with #3491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants