Module dependency missing

Created on 23 September 2024, 2 months ago

Problem/Motivation

The TempAdminLoginController currently uses static methods to access important services, like the database, logging, random string generation, and time. This goes against Drupal's best practices for managing dependencies.

Refactor the TempAdminLoginController to utilize dependency injection for the following services:

  • Database connection (\Drupal\Core\Database\Connection)
  • Logger service (\Drupal\Core\Logger\LoggerChannelFactoryInterface)
  • Random utility (\Drupal\Component\Utility\Random)
  • Time service (\Drupal\Core\Datetime\DrupalDateTime)
🐛 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