Use ModuleHandlerInterface

Created on 9 July 2024, 6 months ago

Problem/Motivation

A couple of the forms in the module use the ModuleHandler. When using e.g. https://www.drupal.org/project/hux β†’ , we get an error "TypeError: Drupal\commerce_smart_importer\Form\CSVIntroductionForm::__construct(): Argument #3 ($moduleHandler) must be of type Drupal\Core\Extension\ModuleHandler".

Steps to reproduce

Install hux module and visit /admin/commerce-csv-introduction.

Proposed resolution

Use ModuleHandlerInterface instead of ModuleHandler.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mrweiner

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024