Vocabulary::load calls should be avoided in classes, use dependency injection instead

Created on 15 May 2023, over 1 year ago
Updated 13 June 2023, over 1 year ago

Problem/Motivation

PHP Codesniffer gives an error while scanning the module in the MixitupFiltersForm.php file.

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Remove the direct call to vocabulary and use a symfony container to inject the service.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.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.71.5 2024