\Drupal calls should be avoided in classes, use dependency injection instead (in CheckUsernameController.php)

Created on 17 April 2023, over 1 year ago
Updated 14 December 2023, about 1 year ago

Problem/Motivation

We can avoid the \Drupal call in CheckUsernameController.php for calling the entityQuery service by injecting the controller class with the entityTypeManager service.

Steps to reproduce

Run the codesniffer command on the module and check the errors/warnings.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Fixed

Version

1.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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024