Replace \Drupal::currentUser() with dependency injection at src/Service/PrivateMessageService.php

Created on 29 January 2024, 5 months ago

Problem/Motivation

`\Drupal calls should be avoided in classes, use dependency injection instead`

Proposed resolution

A call of `$current_user = \Drupal::currentUser();` should be replaced with dependency injection.

📌 Task
Status

Needs review

Version

3.0

Component

Code

Created by

🇺🇦Ukraine bohart Lutsk, Ukraine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024