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

Created on 10 May 2023, over 1 year ago
Updated 12 May 2023, over 1 year ago

Problem/Motivation

Codesniffer gives this error for two files - SettingsForm.php and UserManagementService.php.

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Use dependency injection and containers.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇳India sidharth_soman Bangalore

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

Comments & Activities

Production build 0.71.5 2024