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

Created on 29 January 2024, 11 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

Active

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.71.5 2024