Islandora / openseadragon

Drupal Field Formatter for OpenSeadragon
https://www.drupal.org/project/openseadragon
GNU General Public License v2.0
4 stars 15 forks source link

[BUG] Doesn't work on Drupal 10. #52

Closed rosiel closed 1 year ago

rosiel commented 1 year ago

When trying to use OpenSeadragon on Drupal 10 I get the following error:

TypeError: Drupal\openseadragon\File\FileInformation::__construct(): Argument #1 ($mimeTypeGuesser) must be of type Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface, Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser given, called in /var/www/html/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\openseadragon\File\FileInformation->__construct() (line 29 of /var/www/html/drupal/web/modules/contrib/openseadragon/src/File/FileInformation.php).

I notice that we are asking for a Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface but the mimeTypeGuesser is of a class that implements Symfony\Component\Mime\MimeTypeGuesserInterface.

Can we update it to work on both 9 and 10 or will this require a new branch?

Which version of Islandora are you using? Islandora on Drupal 10

Any related open or closed issues to this bug report?

Screenshots:

rosiel commented 1 year ago

see #50