Implementing the dependency injection

Created on 12 May 2023, about 1 year ago
Updated 14 May 2023, about 1 year ago

Problem/Motivation

Phpcs gives this error - \Drupal calls should be avoided in classes, use dependency injection instead for the files - SpalpExampleConfigAlterSubscriber.php, SpalpExampleConfigLocationAlterSubscriber.php, ExampleBlock.php, JsonConfigFormWidget.php.

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Inject the services using symfony container.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

RTBC

Version

2.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.69.0 2024