Skip to content

Commit

Permalink
refactor: enhance ImaginaryPDF class with supportedMimeTypes method
Browse files Browse the repository at this point in the history
- Updated registration of ImaginaryPDF class to use supportedMimeTypes method

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
  • Loading branch information
ernolf committed Jul 16, 2024
1 parent db0fbc3 commit a41ed80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/PreviewManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ protected function registerCoreProviders() {
$this->registerCoreProvider(Preview\MP3::class, '/audio\/mpeg/');
$this->registerCoreProvider(Preview\OpenDocument::class, '/application\/vnd.oasis.opendocument.*/');
$this->registerCoreProvider(Preview\Imaginary::class, Preview\Imaginary::supportedMimeTypes());
$this->registerCoreProvider(Preview\ImaginaryPDF::class, '/application\/pdf/');
$this->registerCoreProvider(Preview\ImaginaryPDF::class, Preview\ImaginaryPDF::supportedMimeTypes());

// SVG and Bitmap require imagick
if ($this->imagickSupport->hasExtension()) {
Expand Down

0 comments on commit a41ed80

Please sign in to comment.