Notes for 3.0.0

Created on 6 January 2023, over 2 years ago
Updated 7 August 2023, over 1 year ago

----------
This is the first (and likely only) RC level release for File Metadata Manager 3.0, do not use in production.

This release drops support for Drupal below 10.1, and embraces PHP 8.1 and Symfony 6 features.

Strong typehinting

All methods in code are now strictly typehinted. This leads to more functional code, but metadata plugin implementations need to be adjusted to comply with the new interface contracts.

Service autowiring and name changes

The services provided by the module have been renamed to their FQNC interfaces following Symfony 6 practices, with the exception of the file_metadata_manager that is still available, albeit deprecated. It will be removed in next major. Where possible, services now leverage Symfony autowiring capabilities vs explicit argument list.

FileMetadataPluginBase constructor is now final

This means that metadata plugin implementations cannot any longer implement the constructor and call its parent, but should rather add additional properties via the create() static method. The Exif plugin provides an example.

PHPStan level 5 compliance

The module is tested with PHPStan and passes level 5 rules.

Requirements

Changes

  • Issue #3367739 by mondrake: Change lsolesen/pel dependency for fileeye/pel
  • Issue #3030820 by mondrake, DieterHolvoet, alayham, juampynr, masterperoo: Stop logging errors when a file does not exist
  • Issue #3331751 by mondrake: Make module pass PHPStan-5 rule level
  • Issue #3331148 by mondrake: Modernize code for PHP 8.1
  • Issue #3331098 by DieterHolvoet: Fix subclassing and stop overriding constructors
  • Some modernization of \Drupal\file_mdm\FileMetadata
  • Bump Drupal to ^10.1
📌 Task
Status

Fixed

Version

3.0

Component

Documentation

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024