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

Created on 20 October 2022, over 2 years ago
Updated 27 January 2023, about 2 years ago

Problem/Motivation

On Drupal 10.0 and up, static analysis of smart_date module reveals a number of direct calls to Drupal services. These need to be switched over to use dependency injection.

πŸ’¬ Support request
Status

Fixed

Version

3.7

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lhridley

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

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