Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
file.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2021 at 02:20 UTC
Updated:
3 Mar 2024 at 14:49 UTC
Jump to comment: Most recent
Follow-up to #3223209: deprecate file_save_data, file_copy and file_move and replace with a service
There was too many changes with FileUploadHandler before 9.3.0 alpha release, so this change has been added as follow up.
\Drupal\file\Upload\FileUploadHandler::loadByUri() with \Drupal\file\FileRepositoryInterface::loadByUri()
NA
TBD
NA
NA
Deprecate FileUploadHandler::loadByUri() and replace all usages inside the class with FileRepositoryInterface::loadByUri()
NA
NA
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
larowlanThe blocker is in
Comment #9
dimitriskr commentedI don't think we eventually need a CR, right? This method is protected
Comment #10
smustgrave commentedSee a few more instances of ->loadByUri in core. Also issue summary needs to updated to include that the proposed solution is to deprecate and API changes.
There only appear to be about 10 instances in core. Wonder if this counts as deprecating in D11.
Comment #11
dimitriskr commentedComment #12
dimitriskr commentedComment #13
smustgrave commentedBased on slack conversation think this is good.
Comment #14
dimitriskr commentedCleaned up remaining tasks in IS
Comment #15
longwaveLooks straightforward.
Committed 5294815 and pushed to 11.x. Thanks!
Comment #18
longwaveComment #19
longwaveIssue status does not want to change.
Comment #20
smustgrave commentedShould the CR be published?
Comment #21
longwaveYes, whoops, done that as well - thanks!