Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
file.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2026 at 20:48 UTC
Updated:
30 Mar 2026 at 09:30 UTC
Jump to comment: Most recent
Constructor property promotion was added to \Drupal\file\Upload\FileUploadHandler in #3534589: Autowire services in file module
However, we are still setting the properties in the body of the constructor. This is unnecessary and should be removed.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kim.pepperComment #4
kim.pepperComment #5
smustgrave commentedSeems straight forward to me.
Comment #6
kim.pepperComment #7
sivaji_ganesh_jojodae commented+1 the MR looks good overall and correctly simplifies the constructor.
Comment #8
alexpottCommitted and pushed d1911787d5b to main and c289b697b0d to 11.x. Thanks!