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

CommentFileSizeAuthor
#2 drupal_di.patch5.59 KBshiv_sharma
Command icon 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

Shiv_Sharma created an issue. See original summary.

shiv_sharma’s picture

Assigned: shiv_sharma » Unassigned
Status: Active » Needs review
StatusFileSize
new5.59 KB

Created the patch to resolve this issue. and module is working as expected.

Rajan Kumar made their first commit to this issue’s fork.

rajan kumar’s picture

Status: Needs review » Fixed

I have reviewed your patch & merged it in latest branch.

rajan kumar’s picture

Status: Fixed » Closed (fixed)