- Issue created by @cbuvaneswaran
- Merge request !3phpcs update and added depedency injection method for config → (Merged) created by cbuvaneswaran
PHPCS issue
./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
Active
2.0
Code
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.