Issue #3415706 by kim.pepper, smustgrave, longwave: Deprecate unused constant BYTES_TO_READ in FileUploadResource and TemporaryJsonapiFileFieldUploader

merge-requests/4839/merge
Dave Long 2024-02-03 17:00:24 +00:00
parent b8a5017e19
commit d0677640d2
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
2 changed files with 12 additions and 0 deletions

View File

@ -79,6 +79,12 @@ class FileUploadResource extends ResourceBase {
* The amount of bytes to read in each iteration when streaming file data.
*
* @var int
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use
* \Drupal\file\Upload\InputStreamFileWriterInterface::DEFAULT_BYTES_TO_READ
* instead.
*
* @see https://www.drupal.org/node/3380607
*/
const BYTES_TO_READ = 8192;

View File

@ -63,6 +63,12 @@ class TemporaryJsonapiFileFieldUploader {
* The amount of bytes to read in each iteration when streaming file data.
*
* @var int
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use
* \Drupal\file\Upload\InputStreamFileWriterInterface::DEFAULT_BYTES_TO_READ
* instead.
*
* @see https://www.drupal.org/node/3380607
*/
const BYTES_TO_READ = 8192;