Allow any FileSystemInterface

Created on 8 March 2021, almost 4 years ago
Updated 13 September 2024, 5 months ago

Problem/Motivation

Allow using any file system implementing FileSystemInterface, such as S3fsFileService.

Steps to reproduce

  1. Install drupal/s3fs which decorates file_system
  2. open /admin/structure/media/manage/riddle

Proposed resolution

Type $file_system parameter as interface \Drupal\Core\File\FileSystemInterface instead of concrete class \Drupal\Core\File\FileSystem

Remaining tasks

See patch attached below.

User interface changes

None.

API changes

None.

Data model changes

Constuctor arg type widened, as existing FileSystem already implements FileSystemInterface - therefore no breaking change.

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria maosmurf

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