\Drupal calls should be avoided in classes, use dependency injection instead

Created on 28 June 2022, almost 3 years ago
Updated 31 May 2023, almost 2 years ago

$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml devel_mail_logger/

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\devel_mail_logger\src\Controller\DevelMailLoggerController.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
196 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
199 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
------------------------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Rakhi Soni

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024