Use dependency injection for config factory

Created on 12 May 2023, about 1 year ago

Problem/Motivation

Currently the ConfigFactory used in class HeaderEventSubscriber() does not use dependency injection. It should do this.

Steps to reproduce

Run the command:

phpcs --standard=DrupalPractice
/web/modules/contrib/smart_content_cdn/

Proposed resolution

Fix the following coding standards issues and upload the patch or create an MR with fixes.

FILE: \modules\contrib\smart_content_cdn\src\EventSubscriber\HeaderEventSubscriber.php
--------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
30 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------------

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India Shanu Chouhan

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

Comments & Activities

Production build 0.69.0 2024