Avoid invoking global services in the controller files

Created on 18 July 2023, 11 months ago
Updated 22 September 2023, 9 months ago

Problem/Motivation

Both the controller files invoke global calls to 1) the messenger service and 2) the tempstore.shared service. PHPCS reports the DI error for both of them.

Steps to reproduce

Proposed resolution

Inject the services into the class via DI.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.10

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