Verified Commit 6c3d519e authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3531978 by alexpott: \Drupal\jsonapi\Controller\FileUpload deprecation layer does not work

(cherry picked from commit 9229f89b)
parent 3a84566d
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ public function __construct(
  ) {
    if (!$this->fileUploadHandler instanceof FileUploadHandler) {
      @trigger_error('Calling ' . __METHOD__ . '() without the $fileUploadHandler argument being an instance of ' . FileUploadHandler::class . ' is deprecated in drupal:10.3.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/3445266', E_USER_DEPRECATED);
      $this->fileUploadHandler = \Drupal::service('file.upload.handler');
      $this->fileUploadHandler = \Drupal::service('file.upload_handler');
    }
    if (!$this->inputStreamFileWriter) {
      @trigger_error('Calling ' . __METHOD__ . '() without the $inputStreamFileWriter argument is deprecated in drupal:10.3.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/3445266', E_USER_DEPRECATED);