Problem/Motivation

using direct drupal configuration.

 public function submitForm(array &$form, FormStateInterface $form_state) {
    $config = \Drupal::config('integration_chargebee.settings');

    $site_name = $config->get('integration_chargebee_api_site_name');

Steps to reproduce

integration_chargebee/src/Form all page using drupal config
\Drupal::config('')

Proposed resolution

use Dependency Injection

CommentFileSizeAuthor
#6 UseDependencyInjection-3360299-6.patch8.65 KBnishant
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.

nishant’s picture

Assigned: Unassigned » nishant

I am working on this.

shashank5563’s picture

nishant’s picture

@shashank5563,
Created MR, Please review and Merge.

nishant’s picture

StatusFileSize
new8.65 KB

Created patch for the Dependency Injection,

shashank5563’s picture

Status: Active » Needs work

@nishant, Please create MR.

shashank5563’s picture

Status: Needs work » Fixed
shashank5563’s picture

Status: Fixed » Closed (fixed)