Use dependency Injection instead of Drupal call directly

Created on 17 January 2023, about 2 years ago
Updated 23 March 2023, almost 2 years ago

Problem/Motivation

This is a recommendation from best practice to use DI instead of Drupal:: directly for Request

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

Steps to reproduce

Proposed resolution

Create the constructor and receive this class and apply dependency injection to this

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil renatog Campinas

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