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

Created on 18 August 2022, over 2 years ago
Updated 30 January 2023, almost 2 years ago

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\pagedesigner_responsive_images\src\PathProcessor\ImageStylePathProcessor.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
28 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\pagedesigner_responsive_images\src\ResponsiveImageStylesTwigExtension.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------
51 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
53 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
81 | WARNING | ImageStyle::load calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India Harsh panchal

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