Problem/Motivation
Module is using direct services
file src/CacheTagsInvalidator.php
if (empty($endpoint_url)) {
\Drupal::logger('CacheTag Notify')->log('error', 'No endpoint set');
return;
}
file : src/Form/CachetagNotifySettingsForm.php
try {
$response = \Drupal::httpClient()->post($endpoint, []);
if ($response->getStatusCode() === 200) {
return TRUE;
}
return FALSE;
}
Steps to reproduce
need to check code
Proposed resolution
use dependency injection
Remaining tasks
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal_di.patch | 5.59 KB | shiv_sharma |
Issue fork cachetag_notify-3378701
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
shiv_sharma commentedCreated the patch to resolve this issue. and module is working as expected.
Comment #5
rajan kumar commentedI have reviewed your patch & merged it in latest branch.
Comment #6
rajan kumar commented