The SessionLimit service class calls out to the config service like this

\Drupal::config('session_limit.settings')

This is static so needs to be injected instead.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ceng created an issue. See original summary.

nkoporec’s picture

Status: Active » Needs review
FileSize
6.08 KB

Created a patch with dependency injection for all services used.Please reviewed it.

johnennew’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me!

  • johnennew committed 191fe21 on 8.x-1.x authored by nkoporec
    Issue #2674242 by nkoporec: Remove static calls to the config service...
johnennew’s picture

Status: Reviewed & tested by the community » Fixed

Marked as fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.