Missing dependency injection in controller and block file

Created on 23 September 2024, 2 months ago

Problem/Motivation

The Birthday Block module does not use dependency injection for the database service in its controller and block plugin. This makes the code harder to maintain and test. By adding dependency injection, we can make the code cleaner and easier to work with. This change would help follow Drupalโ€™s best practices and improve the overall quality of the module.

Refactor the controller ad block file to utilize dependency injection for the following services:

  • Database connection (\Drupal\Core\Database\Connection)
๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia siddhraj Rajasthan

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

Comments & Activities

Production build 0.71.5 2024