]> source.dussan.org Git - nextcloud-server.git/commit
Add new Provider interface for preview providers 15870/head
authorRobin Appelman <robin@icewind.nl>
Tue, 4 Jun 2019 13:25:25 +0000 (15:25 +0200)
committerRobin Appelman <robin@icewind.nl>
Mon, 17 Jun 2019 12:09:09 +0000 (14:09 +0200)
commit615061437422499025e038483504d4ef2004c8e1
treebd8752decea5d8c10fea43bdcdd92c38c26ebf30
parentf6ad353c7c1176bcaa167051c9f3e118e69f7a20
Add new Provider interface for preview providers

the main difference is passing the `File` object to the provider
instead of a `View` + path

Old providers will still continue to work as before

Signed-off-by: Robin Appelman <robin@icewind.nl>
36 files changed:
lib/composer/composer/autoload_classmap.php
lib/composer/composer/autoload_static.php
lib/private/Preview/BMP.php
lib/private/Preview/Bitmap.php
lib/private/Preview/Font.php
lib/private/Preview/GIF.php
lib/private/Preview/Generator.php
lib/private/Preview/GeneratorHelper.php
lib/private/Preview/HEIC.php
lib/private/Preview/Illustrator.php
lib/private/Preview/Image.php
lib/private/Preview/JPEG.php
lib/private/Preview/MP3.php
lib/private/Preview/MSOffice2003.php
lib/private/Preview/MSOffice2007.php
lib/private/Preview/MSOfficeDoc.php
lib/private/Preview/MarkDown.php
lib/private/Preview/Movie.php
lib/private/Preview/Office.php
lib/private/Preview/OpenDocument.php
lib/private/Preview/PDF.php
lib/private/Preview/PNG.php
lib/private/Preview/Photoshop.php
lib/private/Preview/Postscript.php
lib/private/Preview/ProviderV1Adapter.php [new file with mode: 0644]
lib/private/Preview/ProviderV2.php [new file with mode: 0644]
lib/private/Preview/SVG.php
lib/private/Preview/StarOffice.php
lib/private/Preview/TIFF.php
lib/private/Preview/TXT.php
lib/private/Preview/XBitmap.php
lib/private/PreviewManager.php
lib/public/Preview/IProvider.php
lib/public/Preview/IProviderV2.php [new file with mode: 0644]
tests/lib/Preview/GeneratorTest.php
tests/lib/Preview/Provider.php