deprecate system_retrieve_file() without replacement

Created on 12 July 2021, over 3 years ago
Updated 23 June 2023, over 1 year ago

Problem/Motivation

Follow up to #3223016: Deprecate file_build_uri()

Steps to reproduce

Proposed resolution

Deprecate it without replacement, and just use

$data = (string) \Drupal::httpClient()->get($url)->getBody();
\Drupal::service('file_system')->saveData($data, $local, FileSystemInterface::EXISTS_REPLACE);

instead.

Remaining tasks

User interface changes

API changes

system_retrieve_file() is deprecated.

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
File system 

Last updated about 11 hours ago

Created by

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

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