PHPCS issue and update config from service to dependency injection method

Created on 14 November 2024, 8 days ago

Problem/Motivation

PHPCS issue

Steps to reproduce

./vendor/bin/phpcs --standard=Drupal,DrupalPractice docroot/modules/contrib/acquia_flush_varnish/

FILE: /home/ide/project/docroot/modules/contrib/acquia_flush_varnish/src/AcquiaCloudUtility.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
45 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------

Time: 281ms; Memory: 12MB

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India cbuvaneswaran

Live updates comments and jobs are added and updated live.
  • Security improvements

    It makes Drupal less vulnerable to abuse or misuse. Note, this is the preferred tag, though the Security tag has a large body of issues tagged to it. Do NOT publicly disclose security vulnerabilities; contact the security team instead. Anyone (whether security team or not) can apply this tag to security improvements that do not directly present a vulnerability e.g. hardening an API to add filtering to reduce a common mistake in contributed modules.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024